예제 #1
0
 @Deprecated
 public static String base64Encode(String s) {
   ByteArrayOutputStream bOut = new ByteArrayOutputStream();
   Base64OutputStream out = new Base64OutputStream(bOut);
   try {
     out.write(s.getBytes());
     out.flush();
   } catch (IOException exception) {
   }
   return bOut.toString();
 }
예제 #2
0
 @Override
 public void flush() throws IOException {
   output.flush();
 }