org.sblim.wbem.http.io
Class BoundedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.sblim.wbem.http.io.BoundedInputStream
All Implemented Interfaces:
java.io.Closeable

public class BoundedInputStream
extends java.io.FilterInputStream

Author:
Administrator To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
protected  boolean closed
           
protected  long maxLen
           
protected  long used
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
BoundedInputStream(java.io.InputStream is)
           
BoundedInputStream(java.io.InputStream is, long len)
           
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 int read(byte[] buf)
           
 int read(byte[] buf, int off, int len)
           
 long skip(long len)
           
 
Methods inherited from class java.io.FilterInputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxLen

protected long maxLen

used

protected long used

closed

protected boolean closed
Constructor Detail

BoundedInputStream

public BoundedInputStream(java.io.InputStream is)

BoundedInputStream

public BoundedInputStream(java.io.InputStream is,
                          long len)
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

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

read

public int read(byte[] buf,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

skip

public long skip(long len)
          throws java.io.IOException
Overrides:
skip in class java.io.FilterInputStream
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.FilterInputStream
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.FilterInputStream
Throws:
java.io.IOException


Copyright © 2005, 2008 IBM Corporation. All Rights Reserved.