| java.lang.Object | |||
| ↳ | java.io.InputStream | ||
| ↳ | java.io.FilterInputStream | ||
| ↳ | net.schmizz.sshj.common.Base64.InputStream | ||
A Base64.InputStream will read data from another java.io.InputStream, given in the constructor,
and encode/decode to/from Base64 notation on the fly.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.io.InputStream
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| breakLines | |||||||||||
| buffer | |||||||||||
| bufferLength | |||||||||||
| decodabet | |||||||||||
| encode | |||||||||||
| lineLength | |||||||||||
| numSigBytes | |||||||||||
| options | |||||||||||
| position | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.io.FilterInputStream
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a
Base64.InputStream in DECODE mode. | |||||||||||
Constructs a
Base64.InputStream in either ENCODE or DECODE mode. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Reads enough of the input stream to convert to/from Base64 and returns the next byte.
| |||||||||||
Calls
read() repeatedly until the end of stream is reached or len bytes are read. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.io.FilterInputStream
| |||||||||||
From class
java.io.InputStream
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
| |||||||||||
Constructs a Base64.InputStream in DECODE mode.
| in | The java.io.InputStream from which to read data. |
|---|
Constructs a Base64.InputStream in either ENCODE or DECODE mode.
ENCODE or DECODE: Encode or Decode as data is read.
DO_BREAK_LINES: break lines at 76 characters
(only meaningful when encoding)</i>
Example: new Base64.InputStream( in, Base64.DECODE )| in | The java.io.InputStream from which to read data. |
|---|---|
| options | Specified options |
Reads enough of the input stream to convert to/from Base64 and returns the next byte.
| IOException |
|---|
Calls read() repeatedly until the end of stream is reached or len bytes are read. Returns
number of bytes read into array or -1 if end of stream is encountered.
| dest | Array to hold values |
|---|---|
| off | Offset for array |
| len | Max number of bytes to read into array |
| IOException |
|---|