public class IdentityBytes extends Object implements Serializer<byte[]>
Returns byte arrays unchanged during serialization/deserialization. Useful for storing raw binary data without modification.
Important: Performs direct reference copy, not deep copy. Modifications to returned array affect the original array.
| Constructor and Description |
|---|
IdentityBytes() |
public byte[] construct(byte[] b)
construct in interface Serializer<byte[]>public byte[] getBytes(byte[] o)
getBytes in interface Serializer<byte[]>