public final class StiBase64DecoderUtil
extends java.lang.Object
| Constructor and Description |
|---|
StiBase64DecoderUtil(java.io.OutputStream stream)
Construct a Base64Decoder waiting on calls to its translate() method.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] data)
Decode given byte array into a decoded byte array.
|
static byte[] |
decode(byte[] data,
int begin,
int end)
Decode given byte array into a decoded byte array.
|
static void |
decode(java.io.InputStream input,
java.io.OutputStream out)
Decode bytes from input stream and write decoded bytes to output stream.
|
static void |
decode(java.io.InputStream input,
java.io.OutputStream out,
long count)
Decode bytes from input stream and write decoded bytes to output stream.
|
static byte[] |
decode(java.lang.String str) |
void |
flush()
Writes all decoded octets.
|
StiBase64DecoderUtil |
translate(byte[] bytes)
Translate every base64 character from given byte array into a sextet byte value by using
above translation array.
|
StiBase64DecoderUtil |
translate(byte[] bytes,
int begin,
int end)
Translate every base64 character from given byte array into a sextet byte value by using
above translation array.
|
public StiBase64DecoderUtil(java.io.OutputStream stream)
public static void decode(java.io.InputStream input,
java.io.OutputStream out)
throws java.io.IOException
input - input streamout - output streamjava.io.IOException - if an I/O error occurspublic static void decode(java.io.InputStream input,
java.io.OutputStream out,
long count)
throws java.io.IOException
input - input streamout - output streamcount - count of bytes to read and decode; -1 for all available bytesjava.io.IOException - if an I/O error occurspublic static byte[] decode(java.lang.String str)
public static byte[] decode(byte[] data)
data - Base64 byte array to be decoded.public static byte[] decode(byte[] data,
int begin,
int end)
data - Base64 byte array to be decodedbegin - index of the first byte to start fromend - index after the last bytepublic StiBase64DecoderUtil translate(byte[] bytes) throws java.io.IOException
bytes - the byte array to be decodedjava.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output
stream has been closed.public StiBase64DecoderUtil translate(byte[] bytes, int begin, int end) throws java.io.IOException
bytes - the byte array to be decodedbegin - index of the first byte to start fromend - index after the last bytejava.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output
stream has been closed.public void flush()
throws java.io.IOException
java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output
stream has been closed.Copyright © 2019 Stimulsoft. All Rights Reserved.