|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.common.text.CharToByteEncoder.Generic
public static class CharToByteEncoder.Generic
Generic implementation that works for any charset, based on NIO.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.portal.common.text.CharToByteEncoder |
---|
CharToByteEncoder.Generic |
Field Summary | |
---|---|
static CharToByteEncoder.Generic |
UTF8
. |
Fields inherited from interface org.jboss.portal.common.text.CharToByteEncoder |
---|
EMPTY |
Constructor Summary | |
---|---|
CharToByteEncoder.Generic(java.nio.charset.Charset charset)
|
|
CharToByteEncoder.Generic(java.lang.String encoding)
|
Method Summary | |
---|---|
byte[] |
encode(char c)
Encode the specified char. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final CharToByteEncoder.Generic UTF8
Constructor Detail |
---|
public CharToByteEncoder.Generic(java.nio.charset.Charset charset)
public CharToByteEncoder.Generic(java.lang.String encoding)
Method Detail |
---|
public byte[] encode(char c) throws EncodingException
CharToByteEncoder
encode
in interface CharToByteEncoder
c
- the char to encode
EncodingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |