| java.lang.Object org.apache.tomcat.util.buf.C2BConverter
C2BConverter | final public class C2BConverter (Code) | | Efficient conversion of character to bytes.
This uses the standard JDK mechansim - a writer - but provides mechanisms
to recycle all the objects that are used. It is compatible with JDK1.1 and up,
( nio is better, but it's not available even in 1.2 or 1.3 )
|
convert | final public void convert(char c, int off, int len) throws IOException(Code) | | Generate the bytes using the specified encoding
|
convert | final public void convert(String s) throws IOException(Code) | | Generate the bytes using the specified encoding
|
convert | final public void convert(char c) throws IOException(Code) | | Generate the bytes using the specified encoding
|
flushBuffer | final public void flushBuffer() throws IOException(Code) | | Flush any internal buffers into the ByteOutput or the internal
byte[]
|
recycle | final public void recycle()(Code) | | Reset the internal state, empty the buffers.
The encoding remain in effect, the internal buffers remain allocated.
|
|
|