|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SerializableString
Interface that defines how Jackson package can interact with efficient pre-serialized or lazily-serialized and reused String representations. Typically implementations store possible serialized version(s) so that serialization of String can be done more efficiently, especially when used multiple times.
SerializedString
Method Summary | |
---|---|
char[] |
asQuotedChars()
Returns JSON quoted form of the String, as character array. |
byte[] |
asQuotedUTF8()
Returns UTF-8 encoded version of JSON-quoted String. |
byte[] |
asUnquotedUTF8()
Returns UTF-8 encoded version of unquoted String. |
int |
charLength()
Returns length of the (unquoted) String as characters. |
String |
getValue()
Returns unquoted String that this object represents (and offers serialized forms for) |
Method Detail |
---|
String getValue()
int charLength()
getValue().length();
char[] asQuotedChars()
byte[] asUnquotedUTF8()
getValue().getBytes("UTF-8");
byte[] asQuotedUTF8()
new String(asQuotedChars()).getBytes("UTF-8");
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |