org.jclouds.json.config
Class GsonModule.HexByteArrayAdapter
java.lang.Object
org.jclouds.json.config.GsonModule.HexByteArrayAdapter
- All Implemented Interfaces:
- com.google.gson.JsonDeserializer<byte[]>, com.google.gson.JsonSerializer<byte[]>, GsonModule.ByteArrayAdapter
- Enclosing class:
- GsonModule
@Singleton
public static class GsonModule.HexByteArrayAdapter
- extends Object
- implements GsonModule.ByteArrayAdapter
Method Summary |
byte[] |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context)
|
com.google.gson.JsonElement |
serialize(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.HexByteArrayAdapter
public GsonModule.HexByteArrayAdapter()
deserialize
public 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<byte[]>
- Throws:
com.google.gson.JsonParseException
serialize
public com.google.gson.JsonElement serialize(byte[] src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interface com.google.gson.JsonSerializer<byte[]>
Copyright © 2009-2011 jclouds. All Rights Reserved.