Public Member Functions | Private Attributes
org.apache.xmlrpc.util.LimitedInputStream Class Reference
Inheritance diagram for org.apache.xmlrpc.util.LimitedInputStream:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 LimitedInputStream (InputStream pIn, int pAvailable)
void mark (int readlimit)
boolean markSupported ()
int read () throws IOException
int read (byte b[], int off, int len) throws IOException
void reset () throws IOException
long skip (long n) throws IOException

Private Attributes

long available
InputStream in
long markedAvailable

Detailed Description

A filtering java.io.InputStream for proper handling of the Content-Length header: It guarantees to return at most a given number of bytes.

Definition at line 28 of file LimitedInputStream.java.


Constructor & Destructor Documentation

org.apache.xmlrpc.util.LimitedInputStream.LimitedInputStream ( InputStream  pIn,
int  pAvailable 
) [inline]

Creates a new instance, reading from the given input stream and returning at most the given number of bytes.

Parameters:
pInInput stream being read.
pAvailableNumber of bytes available in pIn.

Definition at line 43 of file LimitedInputStream.java.


Member Function Documentation

void org.apache.xmlrpc.util.LimitedInputStream.mark ( int  readlimit) [inline]

Definition at line 81 of file LimitedInputStream.java.

Definition at line 91 of file LimitedInputStream.java.

int org.apache.xmlrpc.util.LimitedInputStream.read ( ) throws IOException [inline]

Definition at line 48 of file LimitedInputStream.java.

int org.apache.xmlrpc.util.LimitedInputStream.read ( byte  b[],
int  off,
int  len 
) throws IOException [inline]

Definition at line 56 of file LimitedInputStream.java.

void org.apache.xmlrpc.util.LimitedInputStream.reset ( ) throws IOException [inline]

Definition at line 86 of file LimitedInputStream.java.

long org.apache.xmlrpc.util.LimitedInputStream.skip ( long  n) throws IOException [inline]

Definition at line 73 of file LimitedInputStream.java.


Member Data Documentation

Definition at line 34 of file LimitedInputStream.java.

Definition at line 36 of file LimitedInputStream.java.

Definition at line 35 of file LimitedInputStream.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:50