|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.vfs.StreamImpl
com.caucho.server.http.RawInputStream
public class RawInputStream
Filter so POST readers can only read data up to the content length
Field Summary |
---|
Fields inherited from class com.caucho.vfs.StreamImpl |
---|
_nullPath, _path |
Constructor Summary | |
---|---|
RawInputStream()
|
Method Summary | |
---|---|
boolean |
canRead()
Returns true if this is a read stream. |
int |
getAvailable()
Returns the number of bytes available without blocking. |
int |
read(byte[] buffer,
int offset,
int length)
Reads from the buffer, limiting to the content length. |
Methods inherited from class com.caucho.vfs.StreamImpl |
---|
canWrite, clearWrite, close, closeWrite, flush, flushBuffer, flushToDisk, getAttribute, getAttributeNames, getFlushOnNewline, getNewline, getPath, getReadBuffer, getReadPosition, hasSkip, isClosed, isEof, isMmapEnabled, isSendfileEnabled, readNonBlock, readTimeout, removeAttribute, seekEnd, seekStart, setAttribute, setPath, setWriteEncoding, skip, write, write, writeMmap, writeSendfile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RawInputStream()
Method Detail |
---|
public boolean canRead()
StreamImpl
canRead
in class StreamImpl
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
read
in class StreamImpl
buffer
- the buffer containing the results.offset
- the offset into the result bufferlength
- the length of the buffer.
java.io.IOException
public int getAvailable() throws java.io.IOException
StreamImpl
getAvailable
in class StreamImpl
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |