marquee.xmlrpc.util
Class ServerInputStream
java.lang.Object
java.io.InputStream
marquee.xmlrpc.util.ServerInputStream
- public class ServerInputStream
- extends java.io.InputStream
The input stream returns -1 when the amount of bytes specified at construction
has been read. This is to assure the stream reports ready when the XML load has
been read in the HTTP post.
- Version:
- $Revision: 1.3 $
- Author:
- This class is borrowed from Apache JServ
Method Summary |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
long |
skip(long n)
|
Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, reset |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerInputStream
public ServerInputStream(java.io.InputStream in,
int available)
- See Also:
JServ.
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
JServ.
read
public int read(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
JServ.
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
JServ.
skip
public long skip(long n)
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
JServ.