net.sourceforge.openstego
Class OpenStegoConfig

java.lang.Object
  extended bynet.sourceforge.openstego.OpenStegoConfig

public class OpenStegoConfig
extends java.lang.Object

Class to store configuration data for OpenStego


Field Summary
static java.lang.String MAX_BITS_USED_PER_CHANNEL
          Key string for configuration item - maxBitsUsedPerChannel.
static java.lang.String PASSWORD
          Key string for configuration item - password
static java.lang.String USE_COMPRESSION
          Key string for configuration item - useCompression
static java.lang.String USE_ENCRYPTION
          Key string for configuration item - useEncryption
 
Constructor Summary
OpenStegoConfig()
          Default Constructor (with default values for configuration items)
OpenStegoConfig(java.util.Map propMap)
          Constructor with map of configuration data.
 
Method Summary
 java.lang.String getDefaultImageOutputType()
          Get method for configuration item - defaultImageOutputType
 int getMaxBitsUsedPerChannel()
          Get method for configuration item - maxBitsUsedPerChannel
 java.lang.String getPassword()
          Get Method for password
 boolean isUseCompression()
          Get method for configuration item - useCompression
 boolean isUseEncryption()
          Get Method for useEncryption
 void setMaxBitsUsedPerChannel(int maxBitsUsedPerChannel)
          Set method for configuration item - maxBitsUsedPerChannel
 void setPassword(java.lang.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

MAX_BITS_USED_PER_CHANNEL

public static final java.lang.String MAX_BITS_USED_PER_CHANNEL
Key string for configuration item - maxBitsUsedPerChannel.

Maximum bits to use per color channel. Allowing for higher number here might degrade the quality of the image in case the data size is big.

See Also:
Constant Field Values

USE_COMPRESSION

public static final java.lang.String USE_COMPRESSION
Key string for configuration item - useCompression

Flag to indicate whether compression should be used or not

See Also:
Constant Field Values

USE_ENCRYPTION

public static final java.lang.String USE_ENCRYPTION
Key string for configuration item - useEncryption

Flag to indicate whether encryption should be used or not

See Also:
Constant Field Values

PASSWORD

public static final java.lang.String PASSWORD
Key string for configuration item - password

Password for encryption in case "useEncryption" is set to true

See Also:
Constant Field Values
Constructor Detail

OpenStegoConfig

public OpenStegoConfig()
Default Constructor (with default values for configuration items)


OpenStegoConfig

public OpenStegoConfig(java.util.Map propMap)
                throws OpenStegoException
Constructor with map of configuration data. Please make sure that only valid keys for configuration items are provided, and the values for those items are also valid.

Parameters:
propMap - Map containing the configuration data
Throws:
OpenStegoException
Method Detail

getMaxBitsUsedPerChannel

public int getMaxBitsUsedPerChannel()
Get method for configuration item - maxBitsUsedPerChannel

Returns:
maxBitsUsedPerChannel

getDefaultImageOutputType

public java.lang.String getDefaultImageOutputType()
Get method for configuration item - defaultImageOutputType

Returns:
defaultImageOutputType

isUseCompression

public boolean isUseCompression()
Get method for configuration item - useCompression

Returns:
useCompression

setMaxBitsUsedPerChannel

public void setMaxBitsUsedPerChannel(int maxBitsUsedPerChannel)
Set method for configuration item - maxBitsUsedPerChannel

Parameters:
maxBitsUsedPerChannel -

setUseCompression

public void setUseCompression(boolean useCompression)
Set method for configuration item - useCompression

Parameters:
useCompression -

isUseEncryption

public boolean isUseEncryption()
Get Method for useEncryption

Returns:
useEncryption

setUseEncryption

public void setUseEncryption(boolean useEncryption)
Set Method for useEncryption

Parameters:
useEncryption -

getPassword

public java.lang.String getPassword()
Get Method for password

Returns:
password

setPassword

public void setPassword(java.lang.String password)
Set Method for password

Parameters:
password -