com.faunos.util.io
Class Utf8Codec<T extends RuntimeException>
java.lang.Object
com.faunos.util.io.Utf8Codec<T>
public class Utf8Codec<T extends RuntimeException>
- extends Object
Aid for the memory-impaired to encode and decode buffers to and from the
UTF-8 format. Instances must be accessed serially.
Warning: the behavior of this class is undefined
under concurrent access.
- Author:
- Babak Farhang
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utf8Codec
public Utf8Codec(Class<T> exceptionClass)
encode
public int encode(CharSequence in,
ByteBuffer out)
encode
public int encode(CharBuffer in,
ByteBuffer out)
decode
public int decode(ByteBuffer in,
CharBuffer out)