Package edu.sc.seis.sod.tools
Class OutputFormatParser
java.lang.Object
com.martiansoftware.jsap.StringParser
edu.sc.seis.sod.tools.OutputFormatParser
public class OutputFormatParser
extends com.martiansoftware.jsap.StringParser
-
Constructor Summary
Constructors Constructor Description OutputFormatParser(java.util.Map shortcutFormats)
-
Method Summary
Modifier and Type Method Description static com.martiansoftware.jsap.FlaggedOption
createParam(java.lang.String xyFormat, java.lang.String yxFormat)
static com.martiansoftware.jsap.FlaggedOption
createParam(java.util.Map shortcutFormats, java.lang.String defaultFormat)
java.lang.Object
parse(java.lang.String format)
-
Constructor Details
-
OutputFormatParser
public OutputFormatParser(java.util.Map shortcutFormats)
-
-
Method Details
-
createParam
public static com.martiansoftware.jsap.FlaggedOption createParam(java.lang.String xyFormat, java.lang.String yxFormat) -
createParam
public static com.martiansoftware.jsap.FlaggedOption createParam(java.util.Map shortcutFormats, java.lang.String defaultFormat) -
parse
public java.lang.Object parse(java.lang.String format) throws com.martiansoftware.jsap.ParseException- Specified by:
parse
in classcom.martiansoftware.jsap.StringParser
- Throws:
com.martiansoftware.jsap.ParseException
-