Package net.sf.jasperreports.util
Class Base64Util
java.lang.Object
net.sf.jasperreports.util.Base64Util
Utility class to decode Base64 encoded input stream to output stream
or to Base64 encode input stream to output stream
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddecode(InputStream in, OutputStream out) Decode an input stream and write processed data to an output streamstatic byte[]static Stringencode(byte[] data) static Stringencode(byte[] data, boolean multiLineOutput) static voidencode(InputStream in, OutputStream out) Encode an input stream and write processed data to an output streamstatic voidencode(InputStream in, OutputStream out, boolean multiLineOutput) Encode an input stream and write processed data to an output stream
-
Field Details
-
DEFAULT_LINE_LENGTH
-
DEFAULT_LINE_SEPARATOR
public static final byte[] DEFAULT_LINE_SEPARATOR
-
-
Constructor Details
-
Base64Util
public Base64Util()
-
-
Method Details
-
decode
Decode an input stream and write processed data to an output stream- Parameters:
in- the input stream to be decodedout- the output stream to write the decoded data- Throws:
IOException
-
decode
- Throws:
IOException
-
encode
Encode an input stream and write processed data to an output stream- Parameters:
in- the input stream to be encodedout- the output stream to write the encoded data- Throws:
IOException
-
encode
public static void encode(InputStream in, OutputStream out, boolean multiLineOutput) throws IOException Encode an input stream and write processed data to an output stream- Parameters:
in- the input stream to be encodedout- the output stream to write the encoded datamultiLineOutput- specifies whether the output should be formatted into multiple rows using a line separator- Throws:
IOException
-
encode
-
encode
-