org.sadun.util
Class CmdLineOptions.PropertiesFileParser

java.lang.Object
  extended byorg.sadun.util.CmdLineOptions.PropertiesFileParser
All Implemented Interfaces:
CmdLineOptions.DefaultsStreamParser
Enclosing class:
CmdLineOptions

public static final class CmdLineOptions.PropertiesFileParser
extends java.lang.Object
implements CmdLineOptions.DefaultsStreamParser

A CmdLineOptions.DefaultsStreamParser which interprets the stream as coming from a Properties file. Properties.load() is used to read the stream and the resulting properties populate the result map. * @author Cristiano Sadun


Constructor Summary
CmdLineOptions.PropertiesFileParser()
           
 
Method Summary
 java.util.Map readDefaults(java.io.InputStream is)
          Initialize a Properties object using load() on the given string, and place all the read properties in the result Map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdLineOptions.PropertiesFileParser

public CmdLineOptions.PropertiesFileParser()
Method Detail

readDefaults

public java.util.Map readDefaults(java.io.InputStream is)
                           throws java.io.IOException
Initialize a Properties object using load() on the given string, and place all the read properties in the result Map.

Specified by:
readDefaults in interface CmdLineOptions.DefaultsStreamParser
Parameters:
is - a property stream
Returns:
Throws:
java.io.IOException


Copyright © 1999-2004 Cristiano Sadun. This software is released under GPL.