org.eclipse.net4j.util.io
Class ExpectedFileReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.InputStreamReader
          extended by java.io.FileReader
              extended by org.eclipse.net4j.util.io.ExpectedFileReader
All Implemented Interfaces:
Closeable, Readable

public class ExpectedFileReader
extends FileReader

Since:
3.1

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
ExpectedFileReader(File file, long expectedSize)
           
 
Method Summary
 long getTimeout()
           
 int read()
           
 int read(char[] cbuf)
           
 int read(char[] cbuf, int offset, int length)
           
 int read(CharBuffer target)
           
 void setTimeout(long timeout)
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStreamReader
close, getEncoding, ready
 
Methods inherited from class java.io.Reader
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpectedFileReader

public ExpectedFileReader(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 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) 2011, 2012 Eike Stepper (Berlin, Germany) and others.