net.anotheria.moskito.central.storage.serializer
Class GsonSerializer

java.lang.Object
  extended by net.anotheria.moskito.central.storage.serializer.GsonSerializer
All Implemented Interfaces:
SnapshotSerializer

public class GsonSerializer
extends Object
implements SnapshotSerializer

Gson serializer.

Since:
22.03.13 15:00
Author:
lrosenberg

Constructor Summary
GsonSerializer()
           
 
Method Summary
 byte[] serialize(Snapshot snapshot)
          Creates a serialized version of a snapshot and returns byte version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GsonSerializer

public GsonSerializer()
Method Detail

serialize

public byte[] serialize(Snapshot snapshot)
Description copied from interface: SnapshotSerializer
Creates a serialized version of a snapshot and returns byte version.

Specified by:
serialize in interface SnapshotSerializer
Parameters:
snapshot - snapshot to serialize.
Returns:


Copyright © 2010-2013 anotheria.net. All Rights Reserved.