org.eclipse.net4j.util.io
Class ExpectedFileInputStream
java.lang.Object
java.io.InputStream
java.io.FileInputStream
org.eclipse.net4j.util.io.ExpectedFileInputStream
- All Implemented Interfaces:
- Closeable
- public class ExpectedFileInputStream
- extends FileInputStream
- Since:
- 3.1
ExpectedFileInputStream
public ExpectedFileInputStream(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 FileInputStream
- Throws:
IOException
read
public int read()
throws IOException
- Overrides:
read
in class FileInputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class FileInputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read
in class FileInputStream
- Throws:
IOException
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.