| Package | Description |
|---|---|
| org.apache.coyote | |
| org.apache.coyote.http11 | |
| org.apache.coyote.http11.filters | |
| org.apache.tomcat.util.buf |
Buffers and Encodings
|
| Modifier and Type | Method and Description |
|---|---|
int |
Request.doRead(ByteChunk chunk)
Read data from the input buffer and put it into a byte chunk.
|
int |
InputBuffer.doRead(ByteChunk chunk,
Request request)
Return from the input stream.
|
void |
Response.doWrite(ByteChunk chunk)
Write a chunk of bytes.
|
int |
OutputBuffer.doWrite(ByteChunk chunk,
Response response)
Writes the response.
|
| Modifier and Type | Field and Description |
|---|---|
protected ByteChunk |
InternalOutputBuffer.socketBuffer
Socket buffer.
|
| Modifier and Type | Method and Description |
|---|---|
ByteChunk |
InputFilter.getEncodingName()
Get the name of the encoding handled by this filter.
|
ByteChunk |
OutputFilter.getEncodingName()
Get the name of the encoding handled by this filter.
|
| Modifier and Type | Method and Description |
|---|---|
int |
InputFilter.doRead(ByteChunk chunk,
Request unused)
Read bytes.
|
int |
InternalInputBuffer.doRead(ByteChunk chunk,
Request req)
Read some bytes.
|
int |
InternalInputBuffer.InputStreamInputBuffer.doRead(ByteChunk chunk,
Request req)
Read bytes into the specified chunk.
|
int |
InternalOutputBuffer.doWrite(ByteChunk chunk,
Response res)
Write the contents of a byte chunk.
|
int |
InternalOutputBuffer.OutputStreamOutputBuffer.doWrite(ByteChunk chunk,
Response res)
Write chunk.
|
int |
OutputFilter.doWrite(ByteChunk chunk,
Response unused)
Write some bytes.
|
protected int |
Http11Processor.findBytes(ByteChunk bc,
byte[] b)
Specialized utility method: find a sequence of lower case bytes inside
a ByteChunk.
|
void |
InternalOutputBuffer.sendHeader(ByteChunk name,
ByteChunk value)
Send a header.
|
protected void |
InternalOutputBuffer.write(ByteChunk bc)
This method will write the contents of the specyfied message bytes
buffer to the output stream, without filtering.
|
| Modifier and Type | Field and Description |
|---|---|
protected ByteChunk |
ChunkedOutputFilter.chunkHeader
Chunk header.
|
protected static ByteChunk |
ChunkedInputFilter.ENCODING |
protected static ByteChunk |
ChunkedOutputFilter.ENCODING |
protected static ByteChunk |
GzipOutputFilter.ENCODING |
protected static ByteChunk |
IdentityInputFilter.ENCODING |
protected static ByteChunk |
IdentityOutputFilter.ENCODING |
protected static ByteChunk |
VoidInputFilter.ENCODING |
protected static ByteChunk |
VoidOutputFilter.ENCODING |
protected static ByteChunk |
ChunkedOutputFilter.END_CHUNK
End chunk.
|
protected ByteChunk |
IdentityInputFilter.endChunk
Chunk used to read leftover bytes.
|
protected ByteChunk |
GzipOutputFilter.FakeOutputStream.outputChunk |
protected ByteChunk |
ChunkedInputFilter.readChunk
Byte chunk used to read bytes.
|
| Modifier and Type | Method and Description |
|---|---|
ByteChunk |
BufferedInputFilter.getEncodingName() |
ByteChunk |
ChunkedInputFilter.getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity".
|
ByteChunk |
ChunkedOutputFilter.getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity".
|
ByteChunk |
GzipOutputFilter.getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity".
|
ByteChunk |
IdentityInputFilter.getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity".
|
ByteChunk |
IdentityOutputFilter.getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity".
|
ByteChunk |
VoidInputFilter.getEncodingName()
Return the name of the associated encoding; Here, the value is
"void".
|
ByteChunk |
VoidOutputFilter.getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity".
|
| Modifier and Type | Method and Description |
|---|---|
int |
BufferedInputFilter.doRead(ByteChunk chunk,
Request request)
Fills the given ByteChunk with the buffered request body.
|
int |
ChunkedInputFilter.doRead(ByteChunk chunk,
Request req)
Read bytes.
|
int |
IdentityInputFilter.doRead(ByteChunk chunk,
Request req)
Read bytes.
|
int |
VoidInputFilter.doRead(ByteChunk chunk,
Request req)
Write some bytes.
|
int |
ChunkedOutputFilter.doWrite(ByteChunk chunk,
Response res)
Write some bytes.
|
int |
GzipOutputFilter.doWrite(ByteChunk chunk,
Response res)
Write some bytes.
|
int |
IdentityOutputFilter.doWrite(ByteChunk chunk,
Response res)
Write some bytes.
|
int |
VoidOutputFilter.doWrite(ByteChunk chunk,
Response res)
Write some bytes.
|
| Modifier and Type | Field and Description |
|---|---|
protected ByteChunk |
C2BConverter.bb |
| Modifier and Type | Method and Description |
|---|---|
ByteChunk |
C2BConverter.getByteChunk() |
ByteChunk |
MessageBytes.getByteChunk()
Returns the byte chunk, representing the byte[] and offset/length.
|
ByteChunk |
ByteChunk.getClone() |
| Modifier and Type | Method and Description |
|---|---|
void |
ByteChunk.append(ByteChunk src) |
protected static int |
StringCache.compare(ByteChunk name,
byte[] compareTo)
Compare given byte chunk with byte array.
|
void |
UDecoder.convert(ByteChunk mb)
URLDecode, will modify the source.
|
void |
UDecoder.convert(ByteChunk mb,
boolean query)
URLDecode, will modify the source.
|
void |
B2CConverter.convert(ByteChunk bb,
CharChunk cb)
Convert a buffer of bytes into a chars
|
void |
UTF8Decoder.convert(ByteChunk mb,
CharChunk cb) |
boolean |
ByteChunk.equals(ByteChunk bb) |
protected static String |
StringCache.find(ByteChunk name)
Find an entry given its name in the cache and return the associated String.
|
protected static int |
StringCache.findClosest(ByteChunk name,
StringCache.ByteEntry[] array,
int len)
Find an entry given its name in a sorted array of map elements.
|
static C2BConverter |
C2BConverter.getInstance(ByteChunk output,
String encoding) |
void |
C2BConverter.setByteChunk(ByteChunk bb) |
int |
ByteChunk.substract(ByteChunk src) |
static String |
StringCache.toString(ByteChunk bc) |
| Constructor and Description |
|---|
C2BConverter(ByteChunk output,
String encoding)
Create a converter, with bytes going to a byte buffer
|
Copyright © 2005–2017 Oracle Corporation. All rights reserved.