org.syrup.helpers
Class DataImpl

java.lang.Object
  extended byorg.syrup.helpers.DataImpl
All Implemented Interfaces:
Data

public class DataImpl
extends java.lang.Object
implements Data

A generic Data Implementation.

Author:
Robbert van Dalen

Constructor Summary
DataImpl(byte[] b)
          Constructor for the DataImpl object
 
Method Summary
 byte[] bytes()
          Returns the underlying byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataImpl

public DataImpl(byte[] b)
Constructor for the DataImpl object

Parameters:
b - The byte array that is wrapped.
Method Detail

bytes

public byte[] bytes()
Description copied from interface: Data
Returns the underlying byte array.

Specified by:
bytes in interface Data
Returns:
The underlying byte array.