![]() Public static encodeBytes(byte source) Encodes a byte array into Base64 notation. Returns: The Base64-encoded object Since: 2.0 See Also: GZIP, Parameters: serializableObject - The object to encode options - Specified options Note: Technically, this makes your encoding non-compliant.Įxample: encodeObject( myObj, Base64.GZIP ) orĮxample: encodeObject( myObj, Base64.GZIP | Base64.DONT_BREAK_LINES ) GZIP: gzip-compresses object before encoding it.ĭONT_BREAK_LINES: don't break lines at 76 characters Int options) Serializes an object and returns the Base64-encoded Public static encodeObject(java.io.Serializable serializableObject, Returns: The Base64-encoded object Since: 1.4 Parameters: serializableObject - The object to encode The object is not GZip-compressed before being encoded. If the objectĬannot be serialized or there is another error, Public static encodeObject(java.io.Serializable serializableObject) Serializes an object and returns the Base64-encoded See Also: Constant Field Values Method Detail Public static final int DONT_BREAK_LINES Don't break lines when encoding (violates strict Base64 specification) Public static final int GZIP Specify that data should be gzip-compressed. Public static final int DECODE Specify decoding. Public static final int ENCODE Specify encoding. Public static final int NO_OPTIONS No options specified. Methods inherited from class Ĭlone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Serializes an object and returns the Base64-encodedĮncodeObject(java.io.Serializable serializableObject,Ĭonvenience method for encoding data to a file. Very low-level access to decoding ASCII characters inĭecodes data from Base64 notation, automaticallyĭetecting gzip-compressed data and decompressing it.ĭecodeFromFile( filename)Ĭonvenience method for reading a base64-encodedĭecodeToFile( dataToDecode,Ĭonvenience method for decoding data to a file.ĭecodeToObject( encodedObject)Īttempts to decode Base64 data and deserialize a JavaĮncodes a byte array into Base64 notation.ĮncodeFromFile( filename)Ĭonvenience method for reading a binary fileĮncodeObject(java.io.Serializable serializableObject) Specify that data should be gzip-compressed. Java.io.OutputStream, given in the constructor,ĭon't break lines when encoding (violates strict Base64 specification) ![]() Java.io.InputStream, given in the constructor,Īnd encode/decode to/from Base64 notation on the fly.Ī Base64.OutputStream will write data to another Public class Base64 extends Ī Base64.InputStream will read data from another SUMMARY: NESTED | FIELD | CONSTR | METHOD
0 Comments
Leave a Reply. |