All Packages Class Hierarchy This Package Previous Next Index
Class au.com.pharos.packing.RawPacking
au.com.pharos.packing.Packing
|
+----au.com.pharos.packing.RawPacking
- public class RawPacking
- extends Packing
A packing strategy which stores only raw arrays of bytes. Other
objects cannot be stored using this strategy.
- Version:
- $Revision: 1.3 $
- Author:
- Martin Pool
-
RawPacking()
-
-
fromBytes(byte[])
- Performs the trivial unpacking case of returning raw
untouched.
-
toBytes(Object)
- Perform the trivial packing case, casting an array of bytes
into the same.
RawPacking
public RawPacking()
toBytes
public byte[] toBytes(Object obj) throws IllegalArgumentException
- Perform the trivial packing case, casting an array of bytes
into the same.
- Overrides:
- toBytes in class Packing
fromBytes
public Object fromBytes(byte raw[])
- Performs the trivial unpacking case of returning raw
untouched.
- Returns:
- either null or raw; always assignable to
byte[]
- Overrides:
- fromBytes in class Packing
All Packages Class Hierarchy This Package Previous Next Index