static String convertScanToString ( Scan scan ) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; DataOutputStream dos = new DataOutputStream ( out ) ; scan . write ( dos ) ; return Base64 . encodeBytes ( out . toByteArray ( ) ) ; }
Writes the given scan into a Base64 encoded string .