public 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 and Description |
|---|
ObjectStream.Filter(int type,
long size,
InputStream in)
Create a filter stream for an object.
|
| Modifier and Type | Method and 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) |
readpublic ObjectStream.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 Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2014. All rights reserved.