Decoder
public final class Base64Decoder extends Object implements Decoder
Decoder
implementation for standard base64 encoding.
Base64Encoder
Constructor | Description |
---|---|
Base64Decoder() |
Modifier and Type | Method | Description |
---|---|---|
int |
decode(InputStream stream,
ByteBuffer buffer) |
Decodes up to
buffer.length bytes from the given input stream,
into the given buffer. |
protected boolean |
decodeAtom(InputStream pInput,
ByteBuffer pOutput,
int pLength) |
|
protected static int |
readFully(InputStream pStream,
byte[] pBytes,
int pOffset,
int pLength) |
protected static int readFully(InputStream pStream, byte[] pBytes, int pOffset, int pLength) throws IOException
IOException
protected boolean decodeAtom(InputStream pInput, ByteBuffer pOutput, int pLength) throws IOException
IOException
public int decode(InputStream stream, ByteBuffer buffer) throws IOException
Decoder
buffer.length
bytes from the given input stream,
into the given buffer.decode
in interface Decoder
stream
- the input stream to decode data frombuffer
- buffer to store the read data0
if there is no more data because the end of the stream has been reached.DecodeException
- if encoded data is corrupt.IOException
- if an I/O error occurs.EOFException
- if a premature end-of-file is encountered.Copyright © 2018. All rights reserved.