lisken.systoolbox
Class BufferedFDInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by lisken.systoolbox.BufferedFDInputStream
All Implemented Interfaces:
java.io.Closeable

public class BufferedFDInputStream
extends java.io.InputStream


Constructor Summary
BufferedFDInputStream(int fildes)
           
BufferedFDInputStream(java.lang.String filename)
           
 
Method Summary
 int available()
           
 void close()
           
protected  void finalize()
           
 int getFD()
           
 int nextByte()
           
 int read()
           
 java.lang.String toString()
           
 void unread(int b)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferedFDInputStream

public BufferedFDInputStream(int fildes)
                      throws java.io.IOException
Throws:
java.io.IOException

BufferedFDInputStream

public BufferedFDInputStream(java.lang.String filename)
                      throws java.io.IOException
Throws:
java.io.IOException
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

unread

public void unread(int b)
            throws java.io.IOException
Throws:
java.io.IOException

nextByte

public int nextByte()

available

public int available()
Overrides:
available in class java.io.InputStream

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream

getFD

public int getFD()

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object