public class BytesMarshaller extends Object implements Marshaller<byte[]>
Constructor and Description |
---|
BytesMarshaller() |
Modifier and Type | Method and Description |
---|---|
byte[] |
deepCopy(byte[] source) |
int |
getFixedSize() |
boolean |
isDeepCopySupported() |
byte[] |
readPayload(DataInput dataIn)
Read the payload of the object from the DataInput stream.
|
void |
writePayload(byte[] data,
DataOutput dataOut)
Write the payload of the object to the DataOutput stream.
|
public BytesMarshaller()
public void writePayload(byte[] data, DataOutput dataOut) throws IOException
Marshaller
writePayload
in interface Marshaller<byte[]>
IOException
public byte[] readPayload(DataInput dataIn) throws IOException
Marshaller
readPayload
in interface Marshaller<byte[]>
IOException
public int getFixedSize()
getFixedSize
in interface Marshaller<byte[]>
public byte[] deepCopy(byte[] source)
deepCopy
in interface Marshaller<byte[]>
public boolean isDeepCopySupported()
isDeepCopySupported
in interface Marshaller<byte[]>
Marshaller.deepCopy(Object)
operations is supported.Copyright © 2005–2018. All rights reserved.