Package aQute.lib.json
Class StringHandler
java.lang.Object
aQute.lib.json.Handler
aQute.lib.json.StringHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Object
Gather the input until you find the the closing character making sure that new blocks are are take care of.An array can be assigned to a string.An object can be assigned to a string.void
(package private) static void
string
(Appendable app, String s) Methods inherited from class aQute.lib.json.Handler
getField, newInstance, setField
-
Constructor Details
-
StringHandler
public StringHandler()
-
-
Method Details
-
encode
- Specified by:
encode
in classHandler
- Throws:
IOException
-
string
- Throws:
IOException
-
decode
-
decode
-
decode
-
decode
-
decodeObject
An object can be assigned to a string. This means that the stream is interpreted as the object but stored in its complete in the string.- Overrides:
decodeObject
in classHandler
- Throws:
Exception
-
decodeArray
An array can be assigned to a string. This means that the stream is interpreted as the array but stored in its complete in the string.- Overrides:
decodeArray
in classHandler
- Throws:
Exception
-
collect
Gather the input until you find the the closing character making sure that new blocks are are take care of.This method parses the input for a complete block so that it can be stored in a string. This allows envelopes.
- Throws:
Exception
-