com.sun.jini.jeri.internal.http
Class MessageReader.BoundedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sun.jini.jeri.internal.http.MessageReader.BoundedInputStream
All Implemented Interfaces:
Closeable
Enclosing class:
MessageReader

private class MessageReader.BoundedInputStream
extends InputStream

Input stream for reading bounded content data.


Field Summary
private  int bound
           
 
Constructor Summary
MessageReader.BoundedInputStream(int bound)
           
 
Method Summary
 int available()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bound

private int bound
Constructor Detail

MessageReader.BoundedInputStream

MessageReader.BoundedInputStream(int bound)
Method Detail

read

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

read

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

available

public int available()
              throws IOException
Overrides:
available in class InputStream
Throws:
IOException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.