net.sourceforge.openstego
Class WatermarkingPlugin
java.lang.Object
net.sourceforge.openstego.OpenStegoPlugin
net.sourceforge.openstego.WatermarkingPlugin
public abstract class WatermarkingPlugin
- extends OpenStegoPlugin
Abstract class for stego plugins for OpenStego purpose of which is watermarking. It implements few methods which are
specific for watermarking, and provides dummy implementation for the methods which are specific to data hiding
purposes so that sub-class does not need to implement them
- See Also:
DataHidingPlugin
Method Summary |
boolean |
canHandle(byte[] stegoData)
Method to find out whether given stego data can be handled by this plugin or not. |
java.lang.String |
extractMsgFileName(byte[] stegoData,
java.lang.String stegoFileName)
Method to extract the message file name from the stego data. |
java.util.List |
getPurposes()
Gives the purpose(s) of the plugin. |
Methods inherited from class net.sourceforge.openstego.OpenStegoPlugin |
checkMark, createConfig, createConfig, createConfig, embedData, extractData, generateSignature, getConfig, getConfigClass, getDescription, getDiff, getEmbedOptionsUI, getName, getPurposesLabel, getReadableFileExtensions, getUsage, getWatermarkCorrelation, getWritableFileExtensions, populateStdCmdLineOptions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WatermarkingPlugin
public WatermarkingPlugin()
getPurposes
public final java.util.List getPurposes()
- Gives the purpose(s) of the plugin. This implementation returns only one value - Watermarking
- Specified by:
getPurposes
in class OpenStegoPlugin
- Returns:
- Purpose(s) of the plugin
extractMsgFileName
public final java.lang.String extractMsgFileName(byte[] stegoData,
java.lang.String stegoFileName)
throws OpenStegoException
- Method to extract the message file name from the stego data. This implementation returns
null
as
this class is for watermarking plugins only
- Specified by:
extractMsgFileName
in class OpenStegoPlugin
- Parameters:
stegoData
- Stego data containing the messagestegoFileName
- Name of the stego file
- Returns:
- Message file name
- Throws:
OpenStegoException
canHandle
public final boolean canHandle(byte[] stegoData)
- Method to find out whether given stego data can be handled by this plugin or not. This implementation returns
false
as this class is for watermarking plugins only
- Specified by:
canHandle
in class OpenStegoPlugin
- Parameters:
stegoData
- Stego data containing the message
- Returns:
- Boolean indicating whether the stego data can be handled by this plugin or not
Copyright © 2007-2009 Samir Vaidya. All Rights Reserved.