qdown.quickDownloader.systemProperties
Class PropertiesHandler

java.lang.Object
  extended byqdown.quickDownloader.systemProperties.PropertiesHandler

public class PropertiesHandler
extends java.lang.Object

The System properties class used to write to the properties file


Constructor Summary
PropertiesHandler()
           
 
Method Summary
static java.util.Vector getAllProperties(java.lang.String properties, java.lang.String value)
          Gets all the properties
static java.lang.String getPropertyValue(java.lang.String propertyName)
          Used to get a property value by specifying the name of the property
static boolean openFile()
          Opens the properties file stream
static boolean propertiesFileStatus()
          Status of the properties file
static void setPropertyValue(java.lang.String properties, java.lang.String value)
          Used to set the system properties with a key and value combination
static boolean setPropertyValue(java.util.Vector properties)
          Used to set the properties
static void setStatus()
          Sets the status
static boolean writeFile()
          Set the outputstream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesHandler

public PropertiesHandler()
Method Detail

propertiesFileStatus

public static boolean propertiesFileStatus()
Status of the properties file

Returns:
success of task

setStatus

public static void setStatus()
Sets the status


openFile

public static boolean openFile()
Opens the properties file stream

Returns:
success of task

getPropertyValue

public static java.lang.String getPropertyValue(java.lang.String propertyName)
Used to get a property value by specifying the name of the property

Parameters:
propertyName - The property value needed
Returns:
The value of the particular property

writeFile

public static boolean writeFile()
Set the outputstream

Returns:
success of task

setPropertyValue

public static boolean setPropertyValue(java.util.Vector properties)
Used to set the properties

Parameters:
properties - Vector containing the properties
Returns:
success of task

getAllProperties

public static java.util.Vector getAllProperties(java.lang.String properties,
                                                java.lang.String value)
Gets all the properties

Parameters:
properties - The properties
value - The value
Returns:
success of task

setPropertyValue

public static void setPropertyValue(java.lang.String properties,
                                    java.lang.String value)
Used to set the system properties with a key and value combination

Parameters:
properties - Name of the property to be changed
value - The value of the new property