public class ExcerptInputStream extends FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
ELLIPSIS
A marker that's appended to the excerpt if it's less than the complete
stream.
|
in| Constructor and Description |
|---|
ExcerptInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static byte[] |
copyAll(InputStream from,
OutputStream into) |
byte[] |
getExcerpt()
The first few bytes of data, plus ELLIPSIS if there are more bytes.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int offset,
int length) |
available, mark, markSupported, reset, skippublic static final byte[] ELLIPSIS
public ExcerptInputStream(InputStream in)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic byte[] getExcerpt()
throws IOException
IOExceptionpublic int read(byte[] b,
int offset,
int length)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic static byte[] copyAll(InputStream from, OutputStream into) throws IOException
IOExceptionCopyright 2015- Charles R. Severance and licensed CC-BY Attribution 4.0