public class Options extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENCODING |
static String |
ENCODING_UTF_8 |
| Constructor and Description |
|---|
Options()
Constructor,
encoding defaults to utf-8, indent defaults to false.
|
| Modifier and Type | Method and Description |
|---|---|
static Options |
build()
Builder for format class
|
Options |
encoding(String value)
Get the file encoding setting.
|
String |
getEncoding()
Get the file encoding setting
|
Options |
indent(boolean value)
Indicates if serialized xml should be indented or not.
|
boolean |
isIndent()
Indicates if serialized xml should be indented or not.
|
boolean |
isUseApostrophe()
if true use apostrophe to delimit strings.
|
Options |
useApostrophe(boolean useApostrophe)
if true use apostrophe to delimit strings.
|
public static final String DEFAULT_ENCODING
public static final String ENCODING_UTF_8
public Options()
public static Options build()
public boolean isUseApostrophe()
public Options useApostrophe(boolean useApostrophe)
public String getEncoding()
public Options indent(boolean value)
public boolean isIndent()
Copyright © 2015. All rights reserved.