Package io.protostuff
Class StringSerializer.STRING
java.lang.Object
io.protostuff.StringSerializer.STRING
- Enclosing class:
StringSerializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
deser
(byte[] nonNullValue) static String
deser
(byte[] nonNullValue, int offset, int len) (package private) static String
deserCustomOnly
(byte[] nonNullValue) Deserialize using readUTF only.private static String
readUTF
(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
-