public class JSWriter extends Object
Constructor and Description |
---|
JSWriter() |
JSWriter(IndentedWriter ps) |
JSWriter(OutputStream ps) |
Modifier and Type | Method and Description |
---|---|
void |
arrayElement(boolean b) |
void |
arrayElement(long integer) |
void |
arrayElement(String str) |
void |
arraySep()
Useful if you are manually creating arrays and so need to print array separators yourself
|
void |
finishArray() |
void |
finishObject() |
void |
finishOutput() |
void |
key(String key) |
static void |
outputQuotedString(IndentedWriter out,
String string) |
static String |
outputQuotedString(String string) |
void |
pair(String key,
boolean val) |
void |
pair(String key,
long val) |
void |
pair(String key,
String value) |
void |
startArray() |
void |
startObject() |
void |
startOutput() |
public JSWriter()
public JSWriter(OutputStream ps)
public JSWriter(IndentedWriter ps)
public void startOutput()
public void finishOutput()
public void startObject()
public void finishObject()
public void key(String key)
public void pair(String key, boolean val)
public void pair(String key, long val)
public void startArray()
public void finishArray()
public void arrayElement(String str)
public void arrayElement(boolean b)
public void arrayElement(long integer)
public void arraySep()
public static void outputQuotedString(IndentedWriter out, String string)
Licenced under the Apache License, Version 2.0