|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
edu.vt.middleware.crypt.io.AbstractEncodingFilterInputStream
edu.vt.middleware.crypt.io.Base64FilterInputStream
public class Base64FilterInputStream
Converts an input stream of base-64 encoded character bytes into raw bytes.
| Field Summary | |
|---|---|
static int |
LINE_LENGTH_64
Wrap lines at 64 characters. |
static int |
LINE_LENGTH_76
Wrap lines at 76 characters. |
| Fields inherited from class edu.vt.middleware.crypt.io.AbstractEncodingFilterInputStream |
|---|
byteBuffer, CHUNK_SIZE, decodeBuffer, position |
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class edu.vt.middleware.crypt.io.AbstractEncodingFilterInputStream |
|---|
read, read, read |
| Methods inherited from class java.io.FilterInputStream |
|---|
available, close, mark, markSupported, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LINE_LENGTH_64
public static final int LINE_LENGTH_76
| Constructor Detail |
|---|
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.| Method Detail |
|---|
protected int getDecodeBufferCapacity()
getDecodeBufferCapacity in class AbstractEncodingFilterInputStream
protected void fillBuffer()
throws IOException
AbstractEncodingFilterInputStream.decodeBuffer.
fillBuffer in class AbstractEncodingFilterInputStreamIOException - On read errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||