com.eurotech.framework.core.cloud
Class CloudPayloadProtoBufEncoder

java.lang.Object
  extended by com.eurotech.framework.core.cloud.CloudPayloadProtoBufEncoder
All Implemented Interfaces:
CloudPayloadEncoder

public class CloudPayloadProtoBufEncoder
extends Object
implements CloudPayloadEncoder

Encodes an EsfPayload class using the Google ProtoBuf binary format.


Constructor Summary
CloudPayloadProtoBufEncoder(EsfPayload EsfPayload)
           
 
Method Summary
 byte[] getBytes()
          Conversion method to serialize an EsfPayload instance into a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloudPayloadProtoBufEncoder

public CloudPayloadProtoBufEncoder(EsfPayload EsfPayload)
Method Detail

getBytes

public byte[] getBytes()
                throws IOException
Conversion method to serialize an EsfPayload instance into a byte array.

Specified by:
getBytes in interface CloudPayloadEncoder
Returns:
Throws:
IOException


Copyright © 2013. All Rights Reserved.