| com.caucho.server.http.ContentLengthStream
ContentLengthStream | public class ContentLengthStream extends StreamImpl (Code) | | Filter so POST readers can only read data up to the content length
|
Method Summary | |
public boolean | canRead() | public int | getAvailable() | void | init(ReadStream next, long length) | public int | read(byte[] buffer, int offset, int length) Reads from the buffer, limiting to the content length.
Parameters: buffer - the buffer containing the results. Parameters: offset - the offset into the result buffer Parameters: length - the length of the buffer. |
canRead | public boolean canRead()(Code) | | |
init | void init(ReadStream next, long length)(Code) | | |
read | public int read(byte[] buffer, int offset, int length) throws IOException(Code) | | Reads from the buffer, limiting to the content length.
Parameters: buffer - the buffer containing the results. Parameters: offset - the offset into the result buffer Parameters: length - the length of the buffer. the number of bytes read or -1 for the end of the file. |
|
|