Package org.apache.jena.atlas.json.io
Class JSONMaker
- java.lang.Object
-
- org.apache.jena.atlas.json.io.JSONMaker
-
- All Implemented Interfaces:
JSONHandler
public class JSONMaker extends java.lang.Object implements JSONHandler
Build a JSON structure
-
-
Constructor Summary
Constructors Constructor Description JSONMaker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
element(long currLine, long currCol)
void
finishArray(long currLine, long currCol)
void
finishObject(long currLine, long currCol)
void
finishPair(long currLine, long currCol)
void
finishParse(long currLine, long currCol)
JsonValue
jsonValue()
void
keyPair(long currLine, long currCol)
void
startArray(long currLine, long currCol)
void
startObject(long currLine, long currCol)
void
startPair(long currLine, long currCol)
void
startParse(long currLine, long currCol)
void
valueBoolean(boolean b, long currLine, long currCol)
void
valueDecimal(java.lang.String image, long currLine, long currCol)
void
valueDouble(java.lang.String image, long currLine, long currCol)
void
valueInteger(java.lang.String image, long currLine, long currCol)
void
valueNull(long currLine, long currCol)
void
valueString(java.lang.String image, long currLine, long currCol)
-
-
-
Method Detail
-
jsonValue
public JsonValue jsonValue()
-
startParse
public void startParse(long currLine, long currCol)
- Specified by:
startParse
in interfaceJSONHandler
-
finishParse
public void finishParse(long currLine, long currCol)
- Specified by:
finishParse
in interfaceJSONHandler
-
startObject
public void startObject(long currLine, long currCol)
- Specified by:
startObject
in interfaceJSONHandler
-
finishObject
public void finishObject(long currLine, long currCol)
- Specified by:
finishObject
in interfaceJSONHandler
-
startArray
public void startArray(long currLine, long currCol)
- Specified by:
startArray
in interfaceJSONHandler
-
element
public void element(long currLine, long currCol)
- Specified by:
element
in interfaceJSONHandler
-
finishArray
public void finishArray(long currLine, long currCol)
- Specified by:
finishArray
in interfaceJSONHandler
-
startPair
public void startPair(long currLine, long currCol)
- Specified by:
startPair
in interfaceJSONHandler
-
keyPair
public void keyPair(long currLine, long currCol)
- Specified by:
keyPair
in interfaceJSONHandler
-
finishPair
public void finishPair(long currLine, long currCol)
- Specified by:
finishPair
in interfaceJSONHandler
-
valueBoolean
public void valueBoolean(boolean b, long currLine, long currCol)
- Specified by:
valueBoolean
in interfaceJSONHandler
-
valueDecimal
public void valueDecimal(java.lang.String image, long currLine, long currCol)
- Specified by:
valueDecimal
in interfaceJSONHandler
-
valueDouble
public void valueDouble(java.lang.String image, long currLine, long currCol)
- Specified by:
valueDouble
in interfaceJSONHandler
-
valueInteger
public void valueInteger(java.lang.String image, long currLine, long currCol)
- Specified by:
valueInteger
in interfaceJSONHandler
-
valueNull
public void valueNull(long currLine, long currCol)
- Specified by:
valueNull
in interfaceJSONHandler
-
valueString
public void valueString(java.lang.String image, long currLine, long currCol)
- Specified by:
valueString
in interfaceJSONHandler
-
-