net.minidev.json
public class JSONStyle extends Object
Modifier and Type | Field and Description |
---|---|
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_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 |
static JSONStyle |
NO_COMPRESS |
Modifier and Type | Method and Description |
---|---|
void |
arrayfirstObject(Appendable out)
Start the first Array element
|
void |
arrayNextElm(Appendable out)
Start a new Array element
|
void |
arrayObjectEnd(Appendable out)
End of an Array element
|
void |
arrayStart(Appendable out)
Array start
|
void |
arrayStop(Appendable out)
Array Done
|
void |
escape(String s,
Appendable out) |
boolean |
indent() |
boolean |
mustProtectKey(String s) |
boolean |
mustProtectValue(String s) |
void |
objectElmStop(Appendable out)
End Of Object element
|
void |
objectEndOfKey(Appendable out)
end of Key in json Object
|
void |
objectFirstStart(Appendable out)
Start the first Obeject element
|
void |
objectNext(Appendable out)
Start a new Object element
|
void |
objectStart(Appendable out)
begin Object
|
void |
objectStop(Appendable out)
terminate Object
|
boolean |
protect4Web() |
boolean |
protectKeys() |
boolean |
protectValues() |
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 JSONStyle NO_COMPRESS
public static final JSONStyle MAX_COMPRESS
public static final JSONStyle LT_COMPRESS
public boolean protectKeys()
public boolean protectValues()
public boolean protect4Web()
public boolean indent()
public boolean mustProtectKey(String s)
public boolean mustProtectValue(String s)
public void escape(String s, Appendable out)
public void objectStart(Appendable out) throws IOException
IOException
public void objectStop(Appendable out) throws IOException
IOException
public void objectFirstStart(Appendable out) throws IOException
IOException
public void objectNext(Appendable out) throws IOException
IOException
public void objectElmStop(Appendable out) throws IOException
IOException
public void objectEndOfKey(Appendable out) throws IOException
IOException
public void arrayStart(Appendable out) throws IOException
IOException
public void arrayStop(Appendable out) throws IOException
IOException
public void arrayfirstObject(Appendable out) throws IOException
IOException
public void arrayNextElm(Appendable out) throws IOException
IOException
public void arrayObjectEnd(Appendable out) throws IOException
IOException
Copyright © 2013 Chemouni Uriel. All Rights Reserved.