Package net.ontopia.persistence.proxy
Class ContentReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- net.ontopia.persistence.proxy.ContentReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class ContentReader extends FilterReader
INTERNAL: Reader that knows its length.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanclosedprotected longlengthprotected longlengthRead-
Fields inherited from class java.io.FilterReader
in
-
-
Constructor Summary
Constructors Constructor Description ContentReader(Reader reader, long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetLength()intread()intread(char[] cbuf)intread(char[] cbuf, int off, int len)-
Methods inherited from class java.io.FilterReader
mark, markSupported, ready, reset, skip
-
Methods inherited from class java.io.Reader
nullReader, read, transferTo
-
-
-
-
Constructor Detail
-
ContentReader
public ContentReader(Reader reader, long length)
-
-
Method Detail
-
getLength
public long getLength()
-
read
public int read() throws IOException- Overrides:
readin classFilterReader- Throws:
IOException
-
read
public int read(char[] cbuf) throws IOException- Overrides:
readin classReader- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException- Overrides:
readin classFilterReader- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterReader- Throws:
IOException
-
-