org.apache.tomcat.util.buf
public final class C2BConverter extends Object
| Constructor Summary | |
|---|---|
| C2BConverter(ByteChunk output, String encoding) Create a converter, with bytes going to a byte buffer | |
| C2BConverter(String encoding) Create a converter | |
| Method Summary | |
|---|---|
| void | convert(char[] c, int off, int len) Generate the bytes using the specified encoding |
| void | convert(String s, int off, int len) Generate the bytes using the specified encoding |
| void | convert(String s) Generate the bytes using the specified encoding |
| void | convert(char c) Generate the bytes using the specified encoding |
| void | convert(MessageBytes mb) Convert a message bytes chars to bytes |
| void | flushBuffer() Flush any internal buffers into the ByteOutput or the internal
byte[] |
| ByteChunk | getByteChunk() |
| String | getEncoding() |
| void | recycle() Reset the internal state, empty the buffers.
|
| void | setByteChunk(ByteChunk bb) |