org.sadun.util
Interface CmdLineOptions.DefaultsStreamParser

All Known Implementing Classes:
CmdLineOptions.PropertiesFileParser
Enclosing interface:
CmdLineOptions

public static interface CmdLineOptions.DefaultsStreamParser

Objects implementing this interface translate an input stream into a map of default values per options for the CmdLineOptions#useDefaultStream(InputStream, DefaultsStreamParser) method of CmdLineOptions.

Note that the values to place in the map need not be interpreted or converted into Java types, but must simple be Strings which will be parsed by CmdLineOptions as if they were keyed on the command line. Map entries must have names equal to option names (or aliases).

Author:
Cristiano Sadun

Method Summary
 java.util.Map readDefaults(java.io.InputStream is)
          Read the default values for options from the given stream and place them into
 

Method Detail

readDefaults

public java.util.Map readDefaults(java.io.InputStream is)
                           throws java.io.IOException
Read the default values for options from the given stream and place them into

Parameters:
is -
Returns:
Throws:
java.io.IOException


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