public class JacksonMapper extends Object
Constructor and Description |
---|
JacksonMapper() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValidJSON(InputStream in,
IOReporter reporter)
Validates a JSON stream
|
void |
streamWriteCollection(LocatableOutputSupplier<? extends OutputStream> out,
InstanceCollection instances,
IOReporter reporter)
Writes a collection of instances into JSON
|
void |
streamWriteGeoJSONCollection(LocatableOutputSupplier<? extends OutputStream> out,
InstanceCollection instances,
GeoJSONConfig config,
IOReporter reporter)
Writes a collection of instances as GeoJSON
|
public void streamWriteCollection(LocatableOutputSupplier<? extends OutputStream> out, InstanceCollection instances, IOReporter reporter) throws IOException
out
- the output supplierinstances
- the collection of instancesreporter
- the reporterIOException
- if writingpublic void streamWriteGeoJSONCollection(LocatableOutputSupplier<? extends OutputStream> out, InstanceCollection instances, GeoJSONConfig config, IOReporter reporter) throws IOException
out
- the output supplierinstances
- the collection of instancesconfig
- the default geometry configurationreporter
- the reporterIOException
- if writing the instances failspublic boolean isValidJSON(InputStream in, IOReporter reporter)
in
- the JSON streamreporter
- the reporterBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a