net.metanotion.io
Class JavaInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by net.metanotion.io.JavaInputStream
All Implemented Interfaces:
Closeable

public final class JavaInputStream
extends InputStream

Adapter to convert a net.metanotion.io.InputStream into a java.io.InputStream.


Constructor Summary
JavaInputStream(InputStream in)
           
 
Method Summary
 void close()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
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(InputStream in)
Method Detail

read

public int read()
Specified by:
read in class InputStream

read

public int read(byte[] b,
                int off,
                int len)
Overrides:
read in class InputStream

close

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