Steganos  1.0
Steganography for Processing
 All Classes Functions
org.quark.stegnos.BitBuffer Class Reference

Public Member Functions

 BitBuffer (int[] carrierData, int skipBytes, int carrierMask)
 
 BitBuffer (int[] bdnData, int bdnMask, int[] mdData, int mdMask)
 
boolean isEmpty ()
 
int getNext ()
 
int getNext (int nbrBits)
 
int nbrBitsSet (int mask)
 

Detailed Description

This class encapsulates an integer array and enables the data to be read one or more bits at a time. The masks are used to indicate which bits from the data are to be returned.

Author
Peter Lager

Constructor & Destructor Documentation

org.quark.stegnos.BitBuffer.BitBuffer ( int[]  carrierData,
int  skipBytes,
int  carrierMask 
)

Use this for reading the CARRIER data
A BitBuffer created using this constructor is suitable for reading encrypted burden data from the carrier.

Parameters
carrierData
skipBytesthe elements used by the header of bytes to s
carrierMask
org.quark.stegnos.BitBuffer.BitBuffer ( int[]  bdnData,
int  bdnMask,
int[]  mdData,
int  mdMask 
)

Use this for reading the BURDEN data
A BitBuffer created using this constructor is suitable for reading encrypted burden data when embedding into a steganograph.

Parameters
bdnDatathe burden data
bdnMaskthe burden mask
mdDatathe meta data
mdMaskthe meta data mask

Member Function Documentation

int org.quark.stegnos.BitBuffer.getNext ( )

Get the next bit

int org.quark.stegnos.BitBuffer.getNext ( int  nbrBits)

Get a number of bits and pass back as LSB in an integer.

Parameters
nbrBits>0
boolean org.quark.stegnos.BitBuffer.isEmpty ( )

Has all the bits been read?

Returns
true if all the available bits in the buffer have been read
int org.quark.stegnos.BitBuffer.nbrBitsSet ( int  mask)

Calculate the number of bits set in a mask.

Parameters
mask
Returns
number of '1' / set bits

The documentation for this class was generated from the following file: