org.eclipse.net4j.util.io
Class ExpectedFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by org.eclipse.net4j.util.io.ExpectedFileInputStream
All Implemented Interfaces:
Closeable

public class ExpectedFileInputStream
extends FileInputStream

Since:
3.1

Constructor Summary
ExpectedFileInputStream(File file, long expectedSize)
           
 
Method Summary
 long getTimeout()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void setTimeout(long timeout)
           
 long skip(long n)
           
 
Methods inherited from class java.io.FileInputStream
available, close, finalize, getChannel, getFD
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpectedFileInputStream

public ExpectedFileInputStream(File file,
                               long expectedSize)
                        throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

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.