java.lang.Object
org.apache.jena.atlas.json.io.JSWriter
A low level streaming JSON writer - assumes correct sequence of calls (e.g.
keys in objects). Useful when writing JSON directly from some other structure
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJSWriter()
JSWriter
(OutputStream ps) JSWriter
(org.apache.jena.atlas.io.IndentedWriter ps) -
Method Summary
Modifier and TypeMethodDescriptionarrayElement
(boolean b) arrayElement
(long integer) arrayElement
(String str) arraySep()
Useful if you are manually creating arrays and so need to print array separators yourselfvoid
static String
outputQuotedString
(String string) void
-
Field Details
-
ArrayStart
- See Also:
-
ArrayFinish
- See Also:
-
ArraySep
- See Also:
-
ObjectStart
- See Also:
-
ObjectFinish
- See Also:
-
ObjectSep
- See Also:
-
ObjectPairSep
- See Also:
-
-
Constructor Details
-
JSWriter
public JSWriter() -
JSWriter
-
JSWriter
public JSWriter(org.apache.jena.atlas.io.IndentedWriter ps)
-
-
Method Details
-
startOutput
public void startOutput() -
finishOutput
public void finishOutput() -
startObject
-
finishObject
-
key
-
pair
-
pair
-
pair
-
pair
-
startArray
-
finishArray
-
arrayElement
-
arrayElement
-
arrayElement
-
arraySep
Useful if you are manually creating arrays and so need to print array separators yourself -
outputQuotedString
-