public final class C2BConverter
extends java.lang.Object
Constructor and Description |
---|
C2BConverter(ByteChunk output,
java.lang.String encoding)
Create a converter, with bytes going to a byte buffer.
|
C2BConverter(java.lang.String encoding)
Deprecated.
Unused. Will be removed in Tomcat 8.0.x onwards.
|
Modifier and Type | Method and Description |
---|---|
void |
convert(char c)
Generate the bytes using the specified encoding.
|
void |
convert(char[] c,
int off,
int len)
Generate the bytes using the specified encoding.
|
void |
convert(MessageBytes mb)
Deprecated.
Unused. Will be removed in Tomcat 8.0.x onwards.
|
void |
convert(java.lang.String s)
Generate the bytes using the specified encoding.
|
void |
convert(java.lang.String s,
int off,
int len)
Generate the bytes using the specified encoding.
|
void |
flushBuffer()
Flush any internal buffers into the ByteOutput or the internal byte[].
|
ByteChunk |
getByteChunk()
Deprecated.
Unused. Will be removed in Tomcat 8.0.x onwards.
|
java.lang.String |
getEncoding()
Deprecated.
Unused. Will be removed in Tomcat 8.0.x onwards.
|
void |
recycle()
Reset the internal state, empty the buffers.
|
void |
setByteChunk(ByteChunk bb)
Deprecated.
Unused. Will be removed in Tomcat 8.0.x onwards.
|
public C2BConverter(ByteChunk output, java.lang.String encoding) throws java.io.IOException
java.io.IOException
@Deprecated public C2BConverter(java.lang.String encoding) throws java.io.IOException
java.io.IOException
@Deprecated public ByteChunk getByteChunk()
@Deprecated public java.lang.String getEncoding()
@Deprecated public void setByteChunk(ByteChunk bb)
public final void recycle()
public final void convert(char[] c, int off, int len) throws java.io.IOException
java.io.IOException
public final void convert(java.lang.String s, int off, int len) throws java.io.IOException
java.io.IOException
public final void convert(java.lang.String s) throws java.io.IOException
java.io.IOException
public final void convert(char c) throws java.io.IOException
java.io.IOException
@Deprecated public final void convert(MessageBytes mb) throws java.io.IOException
java.io.IOException
public final void flushBuffer() throws java.io.IOException
java.io.IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.