com.gisgraphy.domain.geoloc.service.geoloc
Class GeolocResultsDtoSerializer

java.lang.Object
  extended by 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
 
Constructor Summary
GeolocResultsDtoSerializer()
          Default Constructor
 
Method Summary
 void serialize(java.io.OutputStream outputStream, Output.OutputFormat outputFormat, GeolocResultsDto geolocResultsDto, boolean indent, int startPaginationIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

GeolocResultsDtoSerializer

public GeolocResultsDtoSerializer()
Default Constructor

Method Detail

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 in
outputFormat - the outputFormat we'd like to serialize the geolocResultsDto
geolocResultsDto - the geolocResultsDto to serialize
indent - 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.