Lines Matching refs:data
14 byte[] data)
16 return toBase64String(data, 0, data.length);
20 byte[] data,
24 byte[] encoded = encode(data, off, length);
29 * encode the input data producing a base 64 encoded byte array.
31 * @return a byte array containing the base 64 encoded data.
34 byte[] data)
36 return encode(data, 0, data.length);
40 * encode the input data producing a base 64 encoded byte array.
42 * @return a byte array containing the base 64 encoded data.
45 byte[] data,
54 encoder.encode(data, off, length, bOut);
65 * Encode the byte data to base 64 writing it to the given output stream.
70 byte[] data,
74 return encoder.encode(data, 0, data.length, out);
78 * Encode the byte data to base 64 writing it to the given output stream.
83 byte[] data,
89 return encoder.encode(data, off, length, out);
93 * decode the base 64 encoded input data. It is assumed the input data is valid.
95 * @return a byte array representing the decoded data.
98 byte[] data)
100 int len = data.length / 4 * 3;
105 encoder.decode(data, 0, data.length, bOut);
109 throw new DecoderException("unable to decode base64 data: " + e.getMessage(), e);
116 * decode the base 64 encoded String data - whitespace will be ignored.
118 * @return a byte array representing the decoded data.
121 String data)
123 int len = data.length() / 4 * 3;
128 encoder.decode(data, bOut);
139 * decode the base 64 encoded String data writing it to the given output stream,
145 String data,
149 return encoder.decode(data, out);