public class JSONStyle
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
_ignore_null |
private boolean |
_protect4Web |
private boolean |
_protectKeys |
private boolean |
_protectValues |
private JStylerObj.StringProtector |
esc |
static int |
FLAG_AGRESSIVE
AGRESSIVE have no effect without PROTECT_KEYS or PROTECT_VALUE
AGRESSIVE mode allows Json-smart to not protect String containing
special chars
|
static int |
FLAG_IGNORE_NULL |
static int |
FLAG_PROTECT_4WEB |
static int |
FLAG_PROTECT_KEYS
for advanced usage sample see
|
static int |
FLAG_PROTECT_VALUES |
static JSONStyle |
LT_COMPRESS |
static JSONStyle |
MAX_COMPRESS |
private JStylerObj.MustProtect |
mpKey |
private JStylerObj.MustProtect |
mpValue |
static JSONStyle |
NO_COMPRESS |
| Modifier and Type | Method and Description |
|---|---|
void |
arrayfirstObject(java.lang.Appendable out)
Start the first Array element
|
void |
arrayNextElm(java.lang.Appendable out)
Start a new Array element
|
void |
arrayObjectEnd(java.lang.Appendable out)
End of an Array element
|
void |
arrayStart(java.lang.Appendable out)
Array start
|
void |
arrayStop(java.lang.Appendable out)
Array Done
|
void |
escape(java.lang.String s,
java.lang.Appendable out) |
boolean |
ignoreNull() |
boolean |
indent() |
boolean |
mustProtectKey(java.lang.String s) |
boolean |
mustProtectValue(java.lang.String s) |
void |
objectElmStop(java.lang.Appendable out)
End Of Object element
|
void |
objectEndOfKey(java.lang.Appendable out)
end of Key in json Object
|
void |
objectFirstStart(java.lang.Appendable out)
Start the first Obeject element
|
void |
objectNext(java.lang.Appendable out)
Start a new Object element
|
void |
objectStart(java.lang.Appendable out)
begin Object
|
void |
objectStop(java.lang.Appendable out)
terminate Object
|
boolean |
protect4Web() |
boolean |
protectKeys() |
boolean |
protectValues() |
void |
writeString(java.lang.Appendable out,
java.lang.String value) |
public static final int FLAG_PROTECT_KEYS
net.minidev.json.test.TestCompressorFlags,
Constant Field Valuespublic static final int FLAG_PROTECT_4WEB
public static final int FLAG_PROTECT_VALUES
public static final int FLAG_AGRESSIVE
public static final int FLAG_IGNORE_NULL
public static final JSONStyle NO_COMPRESS
public static final JSONStyle MAX_COMPRESS
public static final JSONStyle LT_COMPRESS
private boolean _protectKeys
private boolean _protect4Web
private boolean _protectValues
private boolean _ignore_null
private JStylerObj.MustProtect mpKey
private JStylerObj.MustProtect mpValue
private JStylerObj.StringProtector esc
public boolean protectKeys()
public boolean protectValues()
public boolean protect4Web()
public boolean ignoreNull()
public boolean indent()
public boolean mustProtectKey(java.lang.String s)
public boolean mustProtectValue(java.lang.String s)
public void writeString(java.lang.Appendable out,
java.lang.String value)
throws java.io.IOException
java.io.IOExceptionpublic void escape(java.lang.String s,
java.lang.Appendable out)
public void objectStart(java.lang.Appendable out)
throws java.io.IOException
java.io.IOExceptionpublic void objectStop(java.lang.Appendable out)
throws java.io.IOException
java.io.IOExceptionpublic void objectFirstStart(java.lang.Appendable out)
throws java.io.IOException
java.io.IOExceptionpublic void objectNext(java.lang.Appendable out)
throws java.io.IOException
java.io.IOExceptionpublic void objectElmStop(java.lang.Appendable out)
throws java.io.IOException
java.io.IOExceptionpublic void objectEndOfKey(java.lang.Appendable out)
throws java.io.IOException
java.io.IOExceptionpublic void arrayStart(java.lang.Appendable out)
throws java.io.IOException
java.io.IOExceptionpublic void arrayStop(java.lang.Appendable out)
throws java.io.IOException
java.io.IOExceptionpublic void arrayfirstObject(java.lang.Appendable out)
throws java.io.IOException
java.io.IOExceptionpublic void arrayNextElm(java.lang.Appendable out)
throws java.io.IOException
java.io.IOExceptionpublic void arrayObjectEnd(java.lang.Appendable out)
throws java.io.IOException
java.io.IOException