com.hazelcast.ascii.rest
Class RestValue

java.lang.Object
  extended by com.hazelcast.ascii.rest.RestValue
All Implemented Interfaces:
DataSerializable

public class RestValue
extends Object
implements DataSerializable


Constructor Summary
RestValue()
           
RestValue(byte[] value, byte[] contentType)
           
 
Method Summary
 byte[] getContentType()
           
 byte[] getValue()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 void setContentType(byte[] contentType)
           
 void setValue(byte[] value)
           
 String toString()
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestValue

public RestValue()

RestValue

public RestValue(byte[] value,
                 byte[] contentType)
Method Detail

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

getContentType

public byte[] getContentType()

setContentType

public void setContentType(byte[] contentType)

getValue

public byte[] getValue()

setValue

public void setValue(byte[] value)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.