public interface JsopWriter
Modifier and Type | Method and Description |
---|---|
JsopWriter |
append(JsopWriter diff)
Append all entries of the given writer.
|
JsopWriter |
array()
Append '['.
|
JsopWriter |
encodedValue(java.lang.String raw)
Append an already encoded value.
|
JsopWriter |
endArray()
Append ']'.
|
JsopWriter |
endObject()
Append '}'.
|
JsopWriter |
key(java.lang.String key)
Append the key (in quotes) plus a colon.
|
JsopWriter |
newline()
Append a newline character.
|
JsopWriter |
object()
Append '{'.
|
void |
resetWriter()
Resets this instance, so that all data is discarded.
|
void |
setLineLength(int length)
Set the line length, after which a newline is added (to improve
readability).
|
JsopWriter |
tag(char tag)
Append a Jsop tag character.
|
JsopWriter |
value(boolean b)
Append the boolean value 'true' or 'false'.
|
JsopWriter |
value(long x)
Append a number.
|
JsopWriter |
value(java.lang.String value)
Append a string or null.
|
JsopWriter array()
JsopWriter object()
JsopWriter key(java.lang.String key)
key
- the keyJsopWriter value(java.lang.String value)
value
- the valueJsopWriter encodedValue(java.lang.String raw)
raw
- the valueJsopWriter endObject()
JsopWriter endArray()
JsopWriter tag(char tag)
tag
- the string to appendJsopWriter append(JsopWriter diff)
diff
- the writerJsopWriter value(long x)
x
- the valueJsopWriter value(boolean b)
b
- the valueJsopWriter newline()
void resetWriter()
void setLineLength(int length)
length
- the lengthCopyright © 2010 - 2020 Adobe. All Rights Reserved