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

Constructor Index

 o RawPacking()

Method Index

 o fromBytes(byte[])
Performs the trivial unpacking case of returning raw untouched.
 o toBytes(Object)
Perform the trivial packing case, casting an array of bytes into the same.

Constructors

 o RawPacking
 public RawPacking()

Methods

 o 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
 o 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