Class StringSerializer.STRING
java.lang.Object
io.protostuff.StringSerializer.STRING
- Enclosing class:
StringSerializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdeser(byte[] nonNullValue) static Stringdeser(byte[] nonNullValue, int offset, int len) (package private) static StringdeserCustomOnly(byte[] nonNullValue) Deserialize using readUTF only.private static StringreadUTF(byte[] buffer, int offset, int len) Reads the string from a byte[] using that was encoded a using Modified UTF-8 format.static byte[]
-
Field Details
-
CESU8_COMPAT
static final boolean CESU8_COMPAT
-
-
Constructor Details
-
STRING
private STRING()
-
-
Method Details
-
deser
-
deser
-
deserCustomOnly
Deserialize using readUTF only.- Parameters:
nonNullValue-- Returns:
-
ser
-
readUTF
Reads the string from a byte[] using that was encoded a using Modified UTF-8 format. Additionally supports 4-byte surrogates, de-serializing them as surrogate pairs. See: http://en.wikipedia.org/wiki/UTF-8#Description for encoding details.- Throws:
UTFDataFormatException
-