Package net.minidev.json
Class JSONStyleIdent
- java.lang.Object
-
- net.minidev.json.JSONStyle
-
- net.minidev.json.JSONStyleIdent
-
public class JSONStyleIdent extends JSONStyle
This class is used to format JSon output, fot a better humain readability- Author:
- Uriel Chemouni
-
-
Field Summary
-
Fields inherited from class net.minidev.json.JSONStyle
FLAG_AGRESSIVE, FLAG_IGNORE_NULL, FLAG_PROTECT_4WEB, FLAG_PROTECT_KEYS, FLAG_PROTECT_VALUES, LT_COMPRESS, MAX_COMPRESS, NO_COMPRESS
-
-
Constructor Summary
Constructors Constructor Description JSONStyleIdent()JSONStyleIdent(int FLAG)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidarrayfirstObject(Appendable out)Start the first Array elementvoidarrayNextElm(Appendable out)Start a new Array elementvoidarrayObjectEnd(Appendable out)End of an Array elementvoidarrayStart(Appendable out)Array startvoidarrayStop(Appendable out)Array DonevoidobjectElmStop(Appendable out)End Of Object elementvoidobjectEndOfKey(Appendable out)end of Key in json ObjectvoidobjectFirstStart(Appendable out)Start the first Obeject elementvoidobjectNext(Appendable out)Start a new Object elementvoidobjectStart(Appendable out)begin ObjectvoidobjectStop(Appendable out)terminate Object-
Methods inherited from class net.minidev.json.JSONStyle
escape, ignoreNull, indent, mustProtectKey, mustProtectValue, protect4Web, protectKeys, protectValues, writeString
-
-
-
-
Method Detail
-
objectStart
public void objectStart(Appendable out) throws IOException
begin Object- Overrides:
objectStartin classJSONStyle- Throws:
IOException
-
objectStop
public void objectStop(Appendable out) throws IOException
terminate Object- Overrides:
objectStopin classJSONStyle- Throws:
IOException
-
objectFirstStart
public void objectFirstStart(Appendable out) throws IOException
Start the first Obeject element- Overrides:
objectFirstStartin classJSONStyle- Throws:
IOException
-
objectNext
public void objectNext(Appendable out) throws IOException
Start a new Object element- Overrides:
objectNextin classJSONStyle- Throws:
IOException
-
objectElmStop
public void objectElmStop(Appendable out) throws IOException
End Of Object element- Overrides:
objectElmStopin classJSONStyle- Throws:
IOException
-
objectEndOfKey
public void objectEndOfKey(Appendable out) throws IOException
end of Key in json Object- Overrides:
objectEndOfKeyin classJSONStyle- Throws:
IOException
-
arrayStart
public void arrayStart(Appendable out) throws IOException
Array start- Overrides:
arrayStartin classJSONStyle- Throws:
IOException
-
arrayStop
public void arrayStop(Appendable out) throws IOException
Array Done- Overrides:
arrayStopin classJSONStyle- Throws:
IOException
-
arrayfirstObject
public void arrayfirstObject(Appendable out) throws IOException
Start the first Array element- Overrides:
arrayfirstObjectin classJSONStyle- Throws:
IOException
-
arrayNextElm
public void arrayNextElm(Appendable out) throws IOException
Start a new Array element- Overrides:
arrayNextElmin classJSONStyle- Throws:
IOException
-
arrayObjectEnd
public void arrayObjectEnd(Appendable out) throws IOException
End of an Array element- Overrides:
arrayObjectEndin classJSONStyle- Throws:
IOException
-
-