com.thoughtworks.xstream.io.json
Class JsonWriter.Format

java.lang.Object
  extended by com.thoughtworks.xstream.io.json.JsonWriter.Format
Enclosing class:
JsonWriter

public static class JsonWriter.Format
extends Object

Format definition for JSON.

Since:
1.4
Author:
Jörg Schaible

Field Summary
static int COMPACT_EMPTY_ELEMENT
           
static int SPACE_AFTER_LABEL
           
 
Constructor Summary
JsonWriter.Format(char[] lineIndenter, char[] newLine, int mode)
          Create a new Formatter.
 
Method Summary
 char[] getLineIndenter()
          Retrieve the lineIndenter.
 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

SPACE_AFTER_LABEL

public static int SPACE_AFTER_LABEL

COMPACT_EMPTY_ELEMENT

public static int COMPACT_EMPTY_ELEMENT
Constructor Detail

JsonWriter.Format

public JsonWriter.Format(char[] lineIndenter,
                         char[] newLine,
                         int mode)
Create a new Formatter.

Parameters:
lineIndenter - the characters used for indenting the line
newLine - the characters used to create a new line
mode - the flags for the format modes
Since:
1.4
Method Detail

getLineIndenter

public char[] getLineIndenter()
Retrieve the lineIndenter.

Returns:
the lineIndenter
Since:
1.4

getNewLine

public char[] getNewLine()
Retrieve the newLine.

Returns:
the newLine
Since:
1.4

mode

public int mode()
Retrieve the mode flags of the formatter.

Returns:
the mode
Since:
1.4


Copyright © 2004-2011 XStream. All Rights Reserved.