net.minidev.json
Class JSONStyle

java.lang.Object
  extended by net.minidev.json.JSONStyle

public class JSONStyle
extends Object

JSONStyle object configure JSonSerializer reducing output size

Author:
Uriel Chemouni

Field Summary
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
           
 
Constructor Summary
JSONStyle()
           
JSONStyle(int FLAG)
           
 
Method Summary
 void escape(String s, Appendable out)
           
 boolean indent()
           
 boolean mustProtectKey(String s)
           
 boolean mustProtectValue(String s)
           
 boolean protect4Web()
           
 boolean protectKeys()
           
 boolean protectValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_PROTECT_KEYS

public static final int FLAG_PROTECT_KEYS
for advanced usage sample see

See Also:
net.minidev.json.test.TestCompressorFlags, Constant Field Values

FLAG_PROTECT_4WEB

public static final int FLAG_PROTECT_4WEB
See Also:
Constant Field Values

FLAG_PROTECT_VALUES

public static final int FLAG_PROTECT_VALUES
See Also:
Constant Field Values

FLAG_AGRESSIVE

public static final 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

See Also:
Constant Field Values

NO_COMPRESS

public static final JSONStyle NO_COMPRESS

MAX_COMPRESS

public static final JSONStyle MAX_COMPRESS

LT_COMPRESS

public static final JSONStyle LT_COMPRESS
Since:
1.0.9.1
Constructor Detail

JSONStyle

public JSONStyle(int FLAG)

JSONStyle

public JSONStyle()
Method Detail

protectKeys

public boolean protectKeys()

protectValues

public boolean protectValues()

protect4Web

public boolean protect4Web()

indent

public boolean indent()

mustProtectKey

public boolean mustProtectKey(String s)

mustProtectValue

public boolean mustProtectValue(String s)

escape

public void escape(String s,
                   Appendable out)


Copyright © 2012 Chemouni Uriel. All Rights Reserved.