Closeable
, AutoCloseable
public class Base64FilterInputStream extends AbstractEncodingFilterInputStream
Modifier and Type | Field | Description |
---|---|---|
static int |
LINE_LENGTH_64 |
Wrap lines at 64 characters.
|
static int |
LINE_LENGTH_76 |
Wrap lines at 76 characters.
|
byteBuffer, CHUNK_SIZE, decodeBuffer, position
in
Constructor | Description |
---|---|
Base64FilterInputStream(InputStream in) |
Creates a base-64 filter input stream around the given input stream.
|
Base64FilterInputStream(InputStream in,
int charsPerLine) |
Creates a base-64 filter input stream around the given input stream.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
fillBuffer() |
Reads characters from the input reader and decodes them to fill
AbstractEncodingFilterInputStream.decodeBuffer . |
protected int |
getDecodeBufferCapacity() |
Gets the encoder that decodes encoded character data in the input stream
to raw bytes.
|
read, read, read
available, close, mark, markSupported, reset, skip
readAllBytes, readNBytes, transferTo
public static final int LINE_LENGTH_64
public static final int LINE_LENGTH_76
public Base64FilterInputStream(InputStream in)
in
- Input stream to wrap.public Base64FilterInputStream(InputStream in, int charsPerLine)
in
- Input stream to wrap.charsPerLine
- Number of characters per line of encoded input. Must
be one of LINE_LENGTH_64
, LINE_LENGTH_76
, or 0
to indicate no wrapping.protected int getDecodeBufferCapacity()
getDecodeBufferCapacity
in class AbstractEncodingFilterInputStream
protected void fillBuffer() throws IOException
AbstractEncodingFilterInputStream.decodeBuffer
.fillBuffer
in class AbstractEncodingFilterInputStream
IOException
- On read errors.Copyright © 2021. All rights reserved.