|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.openstego.OpenStegoConfig
Class to store configuration data for OpenStego
| Field Summary | |
static String |
PASSWORD
Key string for configuration item - password |
static String |
USE_COMPRESSION
Key string for configuration item - useCompression |
static String |
USE_ENCRYPTION
Key string for configuration item - useEncryption |
| Constructor Summary | |
OpenStegoConfig()
Default Constructor (with default values for configuration items) |
|
OpenStegoConfig(CmdLineOptions options)
Constructor which reads configuration data from the command line options. |
|
OpenStegoConfig(Map propMap)
Constructor with map of configuration data. |
|
| Method Summary | |
protected void |
addProperties(Map propMap)
Method to add properties from the map to this configuration data |
String |
getPassword()
Get Method for password |
boolean |
isUseCompression()
Get method for configuration item - useCompression |
boolean |
isUseEncryption()
Get Method for useEncryption |
void |
setPassword(String password)
Set Method for password |
void |
setUseCompression(boolean useCompression)
Set method for configuration item - useCompression |
void |
setUseEncryption(boolean useEncryption)
Set Method for useEncryption |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String USE_COMPRESSION
Flag to indicate whether compression should be used or not
public static final String USE_ENCRYPTION
Flag to indicate whether encryption should be used or not
public static final String PASSWORD
Password for encryption in case "useEncryption" is set to true
| Constructor Detail |
public OpenStegoConfig()
public OpenStegoConfig(Map propMap)
throws OpenStegoException
propMap - Map containing the configuration data
OpenStegoException
public OpenStegoConfig(CmdLineOptions options)
throws OpenStegoException
options - Command-line options
OpenStegoException| Method Detail |
protected void addProperties(Map propMap)
throws OpenStegoException
propMap - Map containing the configuration data
OpenStegoExceptionpublic boolean isUseCompression()
public void setUseCompression(boolean useCompression)
useCompression - public boolean isUseEncryption()
public void setUseEncryption(boolean useEncryption)
useEncryption - public String getPassword()
public void setPassword(String password)
password -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||