org.egothor.util.io
Class JavaInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.egothor.util.io.JavaInputStream
All Implemented Interfaces:
java.io.Closeable

public class JavaInputStream
extends java.io.InputStream

JavaInputStream.java Created on 6. srpen 2006, 3:00

Author:
galambos

Constructor Summary
JavaInputStream(DataInput in, boolean disableUnderlayingClose)
          Creates a new instance of JavaInputStream
 
Method Summary
 void close()
           
 int read()
           
 int read(byte[] b)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaInputStream

public JavaInputStream(DataInput in,
                       boolean disableUnderlayingClose)
Creates a new instance of JavaInputStream

Method Detail

read

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

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

close

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