com.gisgraphy.domain.geoloc.service.geoloc
Class GeolocResultsDtoSerializer
java.lang.Object
com.gisgraphy.domain.geoloc.service.geoloc.GeolocResultsDtoSerializer
- All Implemented Interfaces:
- IGeolocResultsDtoSerializer
public class GeolocResultsDtoSerializer
- extends java.lang.Object
- implements IGeolocResultsDtoSerializer
serialize @link GeolocResultsDto
into several formats
- Author:
- David Masclet
Field Summary |
protected net.sf.json.JsonConfig |
jsonConfig
Json filter, to not serialize all the properties |
protected static org.slf4j.Logger |
logger
The logger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jsonConfig
protected net.sf.json.JsonConfig jsonConfig
- Json filter, to not serialize all the properties
logger
protected static final org.slf4j.Logger logger
- The logger
GeolocResultsDtoSerializer
public GeolocResultsDtoSerializer()
- Default Constructor
serialize
public void serialize(java.io.OutputStream outputStream,
Output.OutputFormat outputFormat,
GeolocResultsDto geolocResultsDto,
boolean indent,
int startPaginationIndex)
- Specified by:
serialize
in interface IGeolocResultsDtoSerializer
- Parameters:
outputStream
- the OutputStream
to serialize inoutputFormat
- the outputFormat we'd like to serialize the geolocResultsDtogeolocResultsDto
- the geolocResultsDto to serializeindent
- whether the stream should be indented (if the format support indentation)startPaginationIndex
- the pagination index (needed for RSS and ATOM)
Copyright © 2010. All Rights Reserved.