|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.openstego.DataHeader
This class holds the header data for the data that needs to be embedded in the image. First, the header data gets written inside the image, and then the actual data is written.
Field Summary | |
static byte[] |
DATA_STAMP
Magic string at the start of the header to identify OpenStego embedded data |
Constructor Summary | |
DataHeader(java.io.InputStream dataInStream,
StegoConfig config)
This constructor should be used when reading embedded data from an InputStream. |
|
DataHeader(int dataLength,
int channelBitsUsed,
StegoConfig config)
This constructor should normally be used when writing the data. |
Method Summary | |
int |
getChannelBitsUsed()
Get Method for channelBitsUsed |
int |
getDataLength()
Get Method for dataLength |
byte[] |
getHeaderData()
This method generates the header in the form of byte array based on the parameters provided in the constructor. |
static int |
getHeaderSize()
Method to get standard header size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte[] DATA_STAMP
Constructor Detail |
public DataHeader(int dataLength, int channelBitsUsed, StegoConfig config)
dataLength
- Length of the data embedded in the image (excluding the header data)channelBitsUsed
- Number of bits used per color channel for embedding the dataconfig
- StegoConfig instance to hold the configuration datapublic DataHeader(java.io.InputStream dataInStream, StegoConfig config) throws java.io.IOException
dataInStream
- Data input stream containing the embedded dataconfig
- StegoConfig instance to hold the configuration data
java.io.IOException
Method Detail |
public byte[] getHeaderData()
public int getChannelBitsUsed()
public int getDataLength()
public static int getHeaderSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |