Closeable, AutoCloseablepublic static class ObjectStream.Filter extends ObjectStream
ObjectLoader implementations can use this stream type when the object's content is available from a standard InputStream.
ObjectStream.Filter, ObjectStream.SmallStream| Constructor | Description |
|---|---|
Filter(int type,
long size,
InputStream in) |
Create a filter stream for an object.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
void |
close() |
|
long |
getSize() |
|
int |
getType() |
|
void |
mark(int readlimit) |
|
boolean |
markSupported() |
|
int |
read() |
|
int |
read(byte[] b,
int off,
int len) |
|
void |
reset() |
|
long |
skip(long n) |
read, readAllBytes, readNBytes, transferTopublic Filter(int type,
long size,
InputStream in)
type - the type of the object.size - total size of the object, in bytes.in - stream the object's raw data is available from. This
stream should be buffered with some reasonable amount of
buffering.public int getType()
getType in class ObjectStreamConstants.public long getSize()
getSize in class ObjectStreampublic int available()
throws IOException
available in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class InputStreamIOExceptionCopyright © 2018. All rights reserved.