Package org.eclipse.net4j.util.io
Class ExpectedFileReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.InputStreamReader
-
- java.io.FileReader
-
- org.eclipse.net4j.util.io.ExpectedFileReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Readable
public class ExpectedFileReader extends java.io.FileReader- Since:
- 3.1
- Author:
- Eike Stepper
-
-
Constructor Summary
Constructors Constructor Description ExpectedFileReader(java.io.File file, long expectedSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetTimeout()intread()intread(char[] cbuf)intread(char[] cbuf, int offset, int length)intread(java.nio.CharBuffer target)voidsetTimeout(long timeout)longskip(long n)
-
-
-
Method Detail
-
getTimeout
public long getTimeout()
-
setTimeout
public void setTimeout(long timeout)
-
skip
public long skip(long n) throws java.io.IOException- Overrides:
skipin classjava.io.Reader- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.InputStreamReader- Throws:
java.io.IOException
-
read
public int read(char[] cbuf, int offset, int length) throws java.io.IOException- Overrides:
readin classjava.io.InputStreamReader- Throws:
java.io.IOException
-
read
public int read(java.nio.CharBuffer target) throws java.io.IOException- Specified by:
readin interfacejava.lang.Readable- Overrides:
readin classjava.io.Reader- Throws:
java.io.IOException
-
read
public int read(char[] cbuf) throws java.io.IOException- Overrides:
readin classjava.io.Reader- Throws:
java.io.IOException
-
-