public static class JsonWriter.Format extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPACT_EMPTY_ELEMENT |
static int |
SPACE_AFTER_LABEL |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
char[] |
getLineIndenter()
Retrieve the lineIndenter.
|
NameCoder |
getNameCoder()
Retrieve the NameCoder.
|
char[] |
getNewLine()
Retrieve the newLine.
|
int |
mode()
Retrieve the mode flags of the formatter.
|
public static int SPACE_AFTER_LABEL
public static int COMPACT_EMPTY_ELEMENT
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 decoderpublic char[] getLineIndenter()
public char[] getNewLine()
public int mode()
public NameCoder getNameCoder()
Copyright © 2004-2014 XStream. All Rights Reserved.