org.apache.xmlrpc.util
Class LimitedInputStream
InputStream
org.apache.xmlrpc.util.LimitedInputStream
public class LimitedInputStream
extends InputStream
A filtering java.io.InputStream
for proper handling of
the Content-Length
header: It guarantees to return
at most a given number of bytes.
LimitedInputStream(InputStream pIn, int pAvailable) - Creates a new instance, reading from the given input stream
and returning at most the given number of bytes.
|
LimitedInputStream
public LimitedInputStream(InputStream pIn,
int pAvailable)
Creates a new instance, reading from the given input stream
and returning at most the given number of bytes.
pIn
- Input stream being read.pAvailable
- Number of bytes available in pIn
.
mark
public void mark(int readlimit)
markSupported
public boolean markSupported()
read
public int read()
throws IOException
read
public int read(b[] ,
int off,
int len)
throws IOException
reset
public void reset()
throws IOException
skip
public long skip(long n)
throws IOException
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.