org.jclouds.json.config
Class GsonModule.HexByteListAdapter
java.lang.Object
org.jclouds.json.config.GsonModule.HexByteListAdapter
- All Implemented Interfaces:
- com.google.gson.JsonDeserializer<List<Byte>>, com.google.gson.JsonSerializer<List<Byte>>, GsonModule.ByteListAdapter
- Enclosing class:
- GsonModule
@Singleton
public static class GsonModule.HexByteListAdapter
- extends Object
- implements GsonModule.ByteListAdapter
Method Summary |
List<Byte> |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context)
|
com.google.gson.JsonElement |
serialize(List<Byte> src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GsonModule.HexByteListAdapter
public GsonModule.HexByteListAdapter()
deserialize
public List<Byte> deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context)
throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interface com.google.gson.JsonDeserializer<List<Byte>>
- Throws:
com.google.gson.JsonParseException
serialize
public com.google.gson.JsonElement serialize(List<Byte> src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interface com.google.gson.JsonSerializer<List<Byte>>
Copyright © 2009-2011 jclouds. All Rights Reserved.