public static class Base64.EncoderInputStream
extends java.io.FilterInputStream
| Constructor and Description |
|---|
EncoderInputStream(java.io.InputStream in) |
EncoderInputStream(java.io.InputStream in,
boolean chunked) |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes that can be read (or skipped over) from
this input stream without blocking by the next caller of a method for
this input stream.
|
void |
close()
Closes this input stream and releases any system resources associated
with the stream.
|
int |
read()
Reads the next byte of data from the input stream.
|
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
public EncoderInputStream(java.io.InputStream in)
in - The stream that should be encoded (chunking is enabled).public EncoderInputStream(java.io.InputStream in,
boolean chunked)
in - The stream that should be encoded.chunked - Whether the encoding should be chunked.public int available()
available in class java.io.FilterInputStreampublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.io.IOExceptionCopyright ? Technia AB. All Rights Reserved.