Package org.geotools.geojson
Class RecordingHandler
- Object
-
- RecordingHandler
-
- All Implemented Interfaces:
ContentHandler
public class RecordingHandler extends Object implements ContentHandler
Handler that records sequence of calls to be replayed layer.- Author:
- Justin Deoliveira, OpenGeo
-
-
Constructor Summary
Constructors Constructor Description RecordingHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanendArray()voidendJSON()booleanendObject()booleanendObjectEntry()booleanprimitive(Object obj)voidreplay(ContentHandler handler)booleanstartArray()voidstartJSON()booleanstartObject()booleanstartObjectEntry(String key)
-
-
-
Method Detail
-
startJSON
public void startJSON() throws ParseException, IOException- Specified by:
startJSONin interfaceContentHandler- Throws:
ParseExceptionIOException
-
startObject
public boolean startObject() throws ParseException, IOException- Specified by:
startObjectin interfaceContentHandler- Throws:
ParseExceptionIOException
-
startObjectEntry
public boolean startObjectEntry(String key) throws ParseException, IOException
- Specified by:
startObjectEntryin interfaceContentHandler- Throws:
ParseExceptionIOException
-
startArray
public boolean startArray() throws ParseException, IOException- Specified by:
startArrayin interfaceContentHandler- Throws:
ParseExceptionIOException
-
primitive
public boolean primitive(Object obj) throws ParseException, IOException
- Specified by:
primitivein interfaceContentHandler- Throws:
ParseExceptionIOException
-
endArray
public boolean endArray() throws ParseException, IOException- Specified by:
endArrayin interfaceContentHandler- Throws:
ParseExceptionIOException
-
endObjectEntry
public boolean endObjectEntry() throws ParseException, IOException- Specified by:
endObjectEntryin interfaceContentHandler- Throws:
ParseExceptionIOException
-
endObject
public boolean endObject() throws ParseException, IOException- Specified by:
endObjectin interfaceContentHandler- Throws:
ParseExceptionIOException
-
endJSON
public void endJSON() throws ParseException, IOException- Specified by:
endJSONin interfaceContentHandler- Throws:
ParseExceptionIOException
-
replay
public void replay(ContentHandler handler) throws ParseException, IOException- Throws:
ParseExceptionIOException
-
-