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 |
---|
Format()
Create a new default Formatter.
|
Format(char[] lineIndenter,
char[] newLine,
int mode)
Create a new Formatter.
|
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 Format()
public 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 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–2017 XStream. All rights reserved.