public class ProgressiveStringDecoder
extends java.lang.Object
This class is designed in assumption that original byte stream is correctly formatted string in given encoding. Otherwise some parts of the data won't be decoded.
Constructor and Description |
---|
ProgressiveStringDecoder(java.nio.charset.Charset charset) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decodeNext(byte[] data,
int length)
Parses data to String If there is a partial multi-byte symbol on the edge of the String it get
saved to the reminder and added to the string on the decodeNext call.
|