public abstract class AbstractCityJSONWriter
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected com.google.gson.Gson |
gson |
protected CityJSONMarshaller |
marshaller |
protected MetadataType |
metadata |
protected com.google.gson.stream.JsonWriter |
writer |
Constructor and Description |
---|
AbstractCityJSONWriter(com.google.gson.stream.JsonWriter writer,
CityJSONOutputFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
CityJSONMarshaller |
getCityJSONMarshaller() |
MetadataType |
getMetadata() |
boolean |
isHtmlSafe() |
void |
setHtmlSafe(boolean htmlSafe) |
void |
setIndent(java.lang.String indent) |
void |
setMetadata(MetadataType metadata) |
protected final com.google.gson.stream.JsonWriter writer
protected final CityJSONMarshaller marshaller
protected final com.google.gson.Gson gson
protected MetadataType metadata
public AbstractCityJSONWriter(com.google.gson.stream.JsonWriter writer, CityJSONOutputFactory factory)
public MetadataType getMetadata()
public void setMetadata(MetadataType metadata)
public void setIndent(java.lang.String indent)
public boolean isHtmlSafe()
public void setHtmlSafe(boolean htmlSafe)
public CityJSONMarshaller getCityJSONMarshaller()
public void flush() throws CityJSONWriteException
CityJSONWriteException
public void close() throws CityJSONWriteException
close
in interface java.lang.AutoCloseable
CityJSONWriteException