|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.io.json.JsonWriter.Format
public static class JsonWriter.Format
Format definition for JSON.
Field Summary | |
---|---|
static int |
COMPACT_EMPTY_ELEMENT
|
static int |
SPACE_AFTER_LABEL
|
Constructor Summary | |
---|---|
JsonWriter.Format()
Create a new default Formatter. |
|
JsonWriter.Format(char[] lineIndenter,
char[] newLine,
int mode)
Create a new Formatter. |
|
JsonWriter.Format(char[] lineIndenter,
char[] newLine,
int mode,
NameCoder nameCoder)
Create a new Formatter. |
Method Summary | |
---|---|
char[] |
getLineIndenter()
Retrieve the lineIndenter. |
NameCoder |
getNameCoder()
Retrieve the NameCoder. |
char[] |
getNewLine()
Retrieve the newLine. |
int |
mode()
Retrieve the mode flags of the formatter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int SPACE_AFTER_LABEL
public static int COMPACT_EMPTY_ELEMENT
Constructor Detail |
---|
public JsonWriter.Format()
public JsonWriter.Format(char[] lineIndenter, char[] newLine, int mode)
lineIndenter
- the characters used for indenting the linenewLine
- the characters used to create a new linemode
- the flags for the format modespublic JsonWriter.Format(char[] lineIndenter, char[] newLine, int mode, NameCoder nameCoder)
lineIndenter
- the characters used for indenting the linenewLine
- the characters used to create a new linemode
- the flags for the format modesnameCoder
- the name encoder and decoderMethod Detail |
---|
public char[] getLineIndenter()
public char[] getNewLine()
public int mode()
public NameCoder getNameCoder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |