Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.util
Class PropertyMapper  view PropertyMapper download PropertyMapper.java

java.lang.Object
  extended bycom.flexstor.common.util.PropertyMapperCore
      extended bycom.flexstor.common.util.PropertyMapper

public class PropertyMapper
extends PropertyMapperCore

PropertyMapper provides functionality to read sections, properties and values from an input file, keep them in memory and access each element of data.

Version:
2.2

Field Summary
 
Fields inherited from class com.flexstor.common.util.PropertyMapperCore
htSections
 
Constructor Summary
PropertyMapper()
           
 
Method Summary
 void readInputFile(com.flexstor.common.io.xfile.FlexXFile xInputFile)
          Reads the input file identifying sections, properties and values.
 void readInputFile(java.lang.String sFileName)
          Reads the input source identifying sections, properties and values.
 void readInputFile(java.lang.String sFileName, boolean bUseXFile)
          Reads the input file identifying sections, properties and values.
 void readInputFile(java.net.URL url)
          Reads the input file identifying sections, properties and values.
 
Methods inherited from class com.flexstor.common.util.PropertyMapperCore
addProperty, addSection, discard, getProperties, getSection, getSections, getValue, readInputFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyMapper

public PropertyMapper()
Method Detail

readInputFile

public void readInputFile(java.lang.String sFileName)
                   throws java.io.IOException
Reads the input source identifying sections, properties and values. If sFileName start with "http://" or "file://" we read the data from an URL otherwise via FlexXFile. This condition may be removed once XFile supports URLs itself.

Specified by:
readInputFile in class PropertyMapperCore

readInputFile

public void readInputFile(java.lang.String sFileName,
                          boolean bUseXFile)
                   throws java.io.IOException
Reads the input file identifying sections, properties and values.


readInputFile

public void readInputFile(com.flexstor.common.io.xfile.FlexXFile xInputFile)
                   throws java.io.IOException
Reads the input file identifying sections, properties and values.


readInputFile

public void readInputFile(java.net.URL url)
                   throws java.io.IOException
Reads the input file identifying sections, properties and values. This method uses the File class not the FlexXFile Class, due to problems with FlexXFile

Specified by:
readInputFile in class PropertyMapperCore