org.ssonet.io
Class IOInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--org.ssonet.io.IOInputStream

public class IOInputStream
extends java.io.InputStream

Provides the InputStream interface to an IOStream.

Version:
$Id: IOInputStream.java,v 1.2 2003/10/20 13:33:30 tk4 Exp $
Author:
Thomas Kriegelstein

Field Summary
protected  byte[] buf
           
protected  org.ssonet.io.IOStream ioStream
           
protected  int len
           
protected  int pos
           
 
Constructor Summary
IOInputStream(org.ssonet.io.IOStream ioStream)
           
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int blen)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ioStream

protected org.ssonet.io.IOStream ioStream

buf

protected byte[] buf

pos

protected int pos

len

protected int len
Constructor Detail

IOInputStream

public IOInputStream(org.ssonet.io.IOStream ioStream)
Method Detail

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.InputStream
java.io.IOException

read

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

read

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

read

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

available

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


Copyright © 2003 DRIM Team. All Rights Reserved.