|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.util.buf.B2CConverter
public class B2CConverter
Efficient conversion of bytes to character . Now uses NIO directly
Constructor Summary | |
---|---|
protected |
B2CConverter()
|
|
B2CConverter(String encoding)
Create a converter, with bytes going to a byte buffer |
Method Summary | |
---|---|
void |
convert(ByteChunk bb,
CharChunk cb)
Deprecated. |
void |
convert(ByteChunk bb,
CharChunk cb,
int limit)
|
static void |
convertASCII(MessageBytes mb)
Character conversion of a US-ASCII MessageBytes. |
protected void |
init(String encoding)
|
void |
recycle()
Reset the internal state, empty the buffers. |
void |
reset()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected B2CConverter()
public B2CConverter(String encoding) throws IOException
IOException
Method Detail |
---|
protected void init(String encoding)
public void recycle()
public void convert(ByteChunk bb, CharChunk cb) throws IOException
IOException
public void convert(ByteChunk bb, CharChunk cb, int limit) throws IOException
IOException
public static void convertASCII(MessageBytes mb)
public void reset() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |