net.ontopia.persistence.proxy
Class ContentInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
net.ontopia.persistence.proxy.ContentInputStream
- All Implemented Interfaces:
- Closeable
public class ContentInputStream
- extends FilterInputStream
INTERNAL: InputStream that knows its length.
- Since:
- 4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
length
protected long length
lengthRead
protected long lengthRead
closed
protected boolean closed
ContentInputStream
public ContentInputStream(InputStream stream,
long length)
getLength
public long getLength()
read
public int read()
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] bbuf)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] bbuf,
int off,
int len)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterInputStream
- Throws:
IOException
Copyright © 2000-2012 Ontopia.