|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectcom.bytecream.codec.Base64Encoder
Provides a set of static methods to encode an array of bytes
with the Base64 algorithm.
The methods encodeToXXXWithLineSeparator(...) use the system
line separator provided by System.getProperty("line.separator").
This line separator must be CRLF or a string of length 1.
For the best performance, use this library in server mode and disable
assertions.
java -server ...
| Method Summary | |
static byte[] |
encodeToBytesWithCRLF(byte[] _data,
boolean _end)
Encodes an array of bytes inserting a CRLF every 76 characters. |
static byte[] |
encodeToBytesWithCRLF(byte[] _data,
int _offset,
int _length,
boolean _end)
Encodes an array of bytes inserting a CRLF every 76 characters. |
static byte[] |
encodeToBytesWithLineSeparator(byte[] _data,
boolean _end)
Encodes an array of bytes inserting the system line separator every 76 characters. |
static byte[] |
encodeToBytesWithoutSeparator(byte[] _data)
Encodes an array of bytes. |
static char[] |
encodeToCharsWithCRLF(byte[] _data,
boolean _end)
Encodes an array of bytes inserting a CRLF every 76 characters. |
static char[] |
encodeToCharsWithLineSeparator(byte[] _data,
boolean _end)
Encodes an array of bytes inserting the system line separator every 76 characters. |
static char[] |
encodeToCharsWithoutSeparator(byte[] _data)
Encodes an array of bytes. |
static java.lang.String |
encodeToStringWithCRLF(byte[] _data,
boolean _end)
Encodes an array of bytes inserting a CRLF every 76 characters. |
static java.lang.String |
encodeToStringWithLineSeparator(byte[] _data,
boolean _end)
Encodes an array of bytes inserting the system line separator every 76 characters. |
static java.lang.String |
encodeToStringWithoutSeparator(byte[] _data)
Encodes an array of bytes. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final java.lang.String encodeToStringWithCRLF(byte[] _data,
boolean _end)
_data - the array of bytes to encode._end - if true add a CRLF at the end.
public static final char[] encodeToCharsWithCRLF(byte[] _data,
boolean _end)
_data - the array of bytes to encode._end - if true add a CRLF at the end.
public static final byte[] encodeToBytesWithCRLF(byte[] _data,
boolean _end)
_data - the array of bytes to encode._end - if true add a CRLF at the end.
public static final byte[] encodeToBytesWithCRLF(byte[] _data,
int _offset,
int _length,
boolean _end)
_data - the array of bytes to encode._offset - the offset within the array of the first byte to be
written._length - the number of bytes to be read from the given array._end - if true add a CRLF at the end.
public static final java.lang.String encodeToStringWithLineSeparator(byte[] _data,
boolean _end)
_data - the array of bytes to encode._end - if true add a CRLF at the end.
java.lang.RuntimeException - if the line separator is not valid.
public static final char[] encodeToCharsWithLineSeparator(byte[] _data,
boolean _end)
_data - the array of bytes to encode._end - if true add a CRLF at the end.
java.lang.RuntimeException - if the line separator is not valid.
public static final byte[] encodeToBytesWithLineSeparator(byte[] _data,
boolean _end)
_data - the array of bytes to encode._end - if true add a CRLF at the end.
java.lang.RuntimeException - if the line separator is not valid.public static final java.lang.String encodeToStringWithoutSeparator(byte[] _data)
_data - the array of bytes to encode.
public static final char[] encodeToCharsWithoutSeparator(byte[] _data)
_data - the array of bytes to encode.
public static final byte[] encodeToBytesWithoutSeparator(byte[] _data)
_data - the array of bytes to encode.
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||