org.apache.jk.common
Class JkInputStream
InputStream
org.apache.jk.common.JkInputStream
public class JkInputStream
extends InputStream
Generic input stream impl on top of ajp
H_SIZE
public static final int H_SIZE
- 4
JK_AJP13_GET_BODY_CHUNK
public static final byte JK_AJP13_GET_BODY_CHUNK
- 6
MAX_PACKET_SIZE
public static final int MAX_PACKET_SIZE
- 8192
MAX_READ_SIZE
public static final int MAX_READ_SIZE
- 8186
JkInputStream
public JkInputStream()
available
public int available()
throws IOException
close
public void close()
throws IOException
doRead
public int doRead(ByteChunk responseChunk)
throws IOException
doRead1
public int doRead1(byte[] b,
int off,
int len)
throws IOException
mark
public void mark(int readLimit)
markSupported
public boolean markSupported()
read
public int read()
throws IOException
read
public int read(byte[] b)
throws IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
receive
public boolean receive()
throws IOException
Receive a chunk of data. Called to implement the
'special' packet in ajp13 and to receive the data
after we send a GET_BODY packet
recycle
public void recycle()
Must be called before or after each request
reset
public void reset()
throws IOException
setContentLength
public void setContentLength(int i)
Must be called after the request is parsed, before
any input
setMsgContext
public void setMsgContext(MsgContext mc)
Must be called when the stream is created
skip
public long skip(long n)
throws IOException
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.