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:
- Closeable, Readable
- public class ExpectedFileReader
- extends FileReader
- Since:
- 3.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpectedFileReader
public ExpectedFileReader(File file,
long expectedSize)
throws FileNotFoundException
- Throws:
FileNotFoundException
getTimeout
public long getTimeout()
setTimeout
public void setTimeout(long timeout)
skip
public long skip(long n)
throws IOException
- Overrides:
skip
in class Reader
- Throws:
IOException
read
public int read()
throws IOException
- Overrides:
read
in class InputStreamReader
- Throws:
IOException
read
public int read(char[] cbuf,
int offset,
int length)
throws IOException
- Overrides:
read
in class InputStreamReader
- Throws:
IOException
read
public int read(CharBuffer target)
throws IOException
- Specified by:
read
in interface Readable
- Overrides:
read
in class Reader
- Throws:
IOException
read
public int read(char[] cbuf)
throws IOException
- Overrides:
read
in class Reader
- Throws:
IOException
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.