MDi JLib
1.7.4

com.microdeveloper.util.io.property
Class FileParameterReader

java.lang.Object
  extended by com.microdeveloper.util.io.property.FileParameterReader

public class FileParameterReader
extends Object

Allows reading of custom parameter files with specific layouts and operators as well as support for switches. A parameter is defined as a name value pair construct whereas a switch is simply a named parameter without an implied value of true.

Author:
Gregg Lagnese

Constructor Summary
FileParameterReader()
          Creates a new instance of FileParameterReader
 
Method Summary
 String getFile()
           
 HashMap getParameters()
           
 String getParameterValue(String key)
           
 int getSize()
           
 boolean parameterExists(String key)
           
 void readFile()
           
 void setFile(String f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileParameterReader

public FileParameterReader()
Creates a new instance of FileParameterReader

Method Detail

readFile

public void readFile()
              throws IOException
Throws:
IOException

parameterExists

public boolean parameterExists(String key)

getParameterValue

public String getParameterValue(String key)

getParameters

public HashMap getParameters()

getSize

public int getSize()

setFile

public void setFile(String f)

getFile

public String getFile()

MDi JLib
1.7.4

Copyright©2001-2007 MicroDeveloper, Inc. All Rights Reserved.