Class JsonStreamWriter
java.lang.Object
org.apache.olingo.odata2.core.ep.util.JsonStreamWriter
Writes JSON output.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendArray()protected voidWrites the JSON-escaped form of a Java String value according to RFC 4627.namedStringValue(String name, String value) namedStringValueRaw(String name, String value) stringValue(String value) stringValueRaw(String value) unquotedValue(String value)
-
Constructor Details
-
JsonStreamWriter
-
-
Method Details
-
beginObject
- Throws:
IOException
-
endObject
- Throws:
IOException
-
beginArray
- Throws:
IOException
-
endArray
- Throws:
IOException
-
name
- Throws:
IOException
-
unquotedValue
- Throws:
IOException
-
stringValueRaw
- Throws:
IOException
-
stringValue
- Throws:
IOException
-
namedStringValueRaw
- Throws:
IOException
-
namedStringValue
- Throws:
IOException
-
separator
- Throws:
IOException
-
escape
Writes the JSON-escaped form of a Java String value according to RFC 4627.- Parameters:
value- the Java String- Throws:
IOException- if an I/O error occurs
-