@Test( expected = NullPointerException.class ) public void testEncodeNullByteArray() { Base64.encodeBytes(null); }
public static String encodeBytes( byte[] source ) { String encoded = null; try { encoded = encodeBytes(source, 0, source.length, NO_OPTIONS); } catch (java.io.IOException ex) { assert false : ex.getMessage(); } assert encoded != null; return encoded; }
Base64 { public static String encodeBytes( byte[] source ) { String encoded = null; try { encoded = encodeBytes(source, 0, source.length, NO_OPTIONS); } catch (java.io.IOException ex) { assert false : ex.getMessage(); } assert encoded != null; return encoded; } }
Base64 { public static String encodeBytes( byte[] source ) { String encoded = null; try { encoded = encodeBytes(source, 0, source.length, NO_OPTIONS); } catch (java.io.IOException ex) { assert false : ex.getMessage(); } assert encoded != null; return encoded; } private  Base64(); }
Base64 { public static String encodeBytes( byte[] source ) { String encoded = null; try { encoded = encodeBytes(source, 0, source.length, NO_OPTIONS); } catch (java.io.IOException ex) { assert false : ex.getMessage(); } assert encoded != null; return encoded; } private  Base64(); static String encode( java.io.InputStream source ); static String encode( java.io.InputStream source,
                                 int options ); static void encode( java.nio.ByteBuffer raw,
                               java.nio.ByteBuffer encoded ); static void encode( java.nio.ByteBuffer raw,
                               java.nio.CharBuffer encoded ); static String encodeObject( java.io.Serializable serializableObject ); static String encodeObject( java.io.Serializable serializableObject,
                                       int options ); static String encodeBytes( byte[] source ); static String encodeBytes( byte[] source,
                                      int options ); static String encodeBytes( byte[] source,
                                      int off,
                                      int len ); static String encodeBytes( byte[] source,
                                      int off,
                                      int len,
                                      int options ); static byte[] encodeBytesToBytes( byte[] source ); static byte[] encodeBytesToBytes( byte[] source,
                                             int off,
                                             int len,
                                             int options ); static byte[] decode( byte[] source ); static byte[] decode( byte[] source,
                                 int off,
                                 int len,
                                 int options ); static byte[] decode( String s ); static byte[] decode( String s,
                                 int options ); static Object decodeToObject( String encodedObject ); static Object decodeToObject( String encodedObject,
                                         int options,
                                         final ClassLoader loader ); static void encodeToFile( byte[] dataToEncode,
                                     String filename ); static void decodeToFile( String dataToDecode,
                                     String filename ); static byte[] decodeFromFile( String filename ); static String encodeFromFile( String filename ); static void encodeFileToFile( String infile,
                                         String outfile ); static void decodeFileToFile( String infile,
                                         String outfile ); }
Base64 { public static String encodeBytes( byte[] source ) { String encoded = null; try { encoded = encodeBytes(source, 0, source.length, NO_OPTIONS); } catch (java.io.IOException ex) { assert false : ex.getMessage(); } assert encoded != null; return encoded; } private  Base64(); static String encode( java.io.InputStream source ); static String encode( java.io.InputStream source,
                                 int options ); static void encode( java.nio.ByteBuffer raw,
                               java.nio.ByteBuffer encoded ); static void encode( java.nio.ByteBuffer raw,
                               java.nio.CharBuffer encoded ); static String encodeObject( java.io.Serializable serializableObject ); static String encodeObject( java.io.Serializable serializableObject,
                                       int options ); static String encodeBytes( byte[] source ); static String encodeBytes( byte[] source,
                                      int options ); static String encodeBytes( byte[] source,
                                      int off,
                                      int len ); static String encodeBytes( byte[] source,
                                      int off,
                                      int len,
                                      int options ); static byte[] encodeBytesToBytes( byte[] source ); static byte[] encodeBytesToBytes( byte[] source,
                                             int off,
                                             int len,
                                             int options ); static byte[] decode( byte[] source ); static byte[] decode( byte[] source,
                                 int off,
                                 int len,
                                 int options ); static byte[] decode( String s ); static byte[] decode( String s,
                                 int options ); static Object decodeToObject( String encodedObject ); static Object decodeToObject( String encodedObject,
                                         int options,
                                         final ClassLoader loader ); static void encodeToFile( byte[] dataToEncode,
                                     String filename ); static void decodeToFile( String dataToDecode,
                                     String filename ); static byte[] decodeFromFile( String filename ); static String encodeFromFile( String filename ); static void encodeFileToFile( String infile,
                                         String outfile ); static void decodeFileToFile( String infile,
                                         String outfile ); static final int NO_OPTIONS; static final int ENCODE; static final int DECODE; static final int GZIP; static final int DONT_GUNZIP; static final int DO_BREAK_LINES; static final int URL_SAFE; static final int ORDERED; }