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 void
arrayfirstObject(Appendable out)
Start the first Array elementvoid
arrayNextElm(Appendable out)
Start a new Array elementvoid
arrayObjectEnd(Appendable out)
End of an Array elementvoid
arrayStart(Appendable out)
Array startvoid
arrayStop(Appendable out)
Array Donevoid
objectElmStop(Appendable out)
End Of Object elementvoid
objectEndOfKey(Appendable out)
end of Key in json Objectvoid
objectFirstStart(Appendable out)
Start the first Obeject elementvoid
objectNext(Appendable out)
Start a new Object elementvoid
objectStart(Appendable out)
begin Objectvoid
objectStop(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:
objectStart
in classJSONStyle
- Throws:
IOException
-
objectStop
public void objectStop(Appendable out) throws IOException
terminate Object- Overrides:
objectStop
in classJSONStyle
- Throws:
IOException
-
objectFirstStart
public void objectFirstStart(Appendable out) throws IOException
Start the first Obeject element- Overrides:
objectFirstStart
in classJSONStyle
- Throws:
IOException
-
objectNext
public void objectNext(Appendable out) throws IOException
Start a new Object element- Overrides:
objectNext
in classJSONStyle
- Throws:
IOException
-
objectElmStop
public void objectElmStop(Appendable out) throws IOException
End Of Object element- Overrides:
objectElmStop
in classJSONStyle
- Throws:
IOException
-
objectEndOfKey
public void objectEndOfKey(Appendable out) throws IOException
end of Key in json Object- Overrides:
objectEndOfKey
in classJSONStyle
- Throws:
IOException
-
arrayStart
public void arrayStart(Appendable out) throws IOException
Array start- Overrides:
arrayStart
in classJSONStyle
- Throws:
IOException
-
arrayStop
public void arrayStop(Appendable out) throws IOException
Array Done- Overrides:
arrayStop
in classJSONStyle
- Throws:
IOException
-
arrayfirstObject
public void arrayfirstObject(Appendable out) throws IOException
Start the first Array element- Overrides:
arrayfirstObject
in classJSONStyle
- Throws:
IOException
-
arrayNextElm
public void arrayNextElm(Appendable out) throws IOException
Start a new Array element- Overrides:
arrayNextElm
in classJSONStyle
- Throws:
IOException
-
arrayObjectEnd
public void arrayObjectEnd(Appendable out) throws IOException
End of an Array element- Overrides:
arrayObjectEnd
in classJSONStyle
- Throws:
IOException
-
-