edu.sc.seis.sod.tools
Class OutputFormatParser

java.lang.Object
  extended by com.martiansoftware.jsap.StringParser
      extended by edu.sc.seis.sod.tools.OutputFormatParser

public class OutputFormatParser
extends com.martiansoftware.jsap.StringParser


Constructor Summary
OutputFormatParser(java.util.Map shortcutFormats)
           
 
Method Summary
static com.martiansoftware.jsap.FlaggedOption createParam(java.util.Map shortcutFormats, java.lang.String defaultFormat)
           
static com.martiansoftware.jsap.FlaggedOption createParam(java.lang.String xyFormat, java.lang.String yxFormat)
           
 java.lang.Object parse(java.lang.String format)
           
 
Methods inherited from class com.martiansoftware.jsap.StringParser
setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputFormatParser

public OutputFormatParser(java.util.Map shortcutFormats)
Method Detail

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 class com.martiansoftware.jsap.StringParser
Throws:
com.martiansoftware.jsap.ParseException