Class AbstractConverter

  • Direct Known Subclasses:
    JSyncLogToCSV, StoreToCSV

    public abstract class AbstractConverter
    extends java.lang.Object
    • Field Detail

      • ARGUMENT_DATE_FORMAT

        protected static final java.lang.String ARGUMENT_DATE_FORMAT
        See Also:
        Constant Field Values
      • cmd

        protected org.apache.commons.cli.CommandLine cmd
      • options

        protected org.apache.commons.cli.Options options
      • inputFile

        protected java.io.File inputFile
      • outputFile

        protected java.io.File outputFile
      • startTime

        protected long startTime
      • endTime

        protected long endTime
      • isDay

        protected boolean isDay
    • Constructor Detail

      • AbstractConverter

        public AbstractConverter()
    • Method Detail

      • parseParams

        protected void parseParams​(java.lang.String[] args)
      • parseFileParam

        protected void parseFileParam()
      • parseDayParam

        protected void parseDayParam()
      • parseStartTimeParam

        protected void parseStartTimeParam()
      • parseEndTimeParam

        protected void parseEndTimeParam()
      • parseStartDayParam

        protected void parseStartDayParam()
      • parseEndDayParam

        protected void parseEndDayParam()
      • printErrorAndExit

        protected void printErrorAndExit​(java.lang.String errorMsg)
      • getCommandLine

        protected org.apache.commons.cli.CommandLine getCommandLine​(java.lang.String[] args)
      • printUsage

        protected void printUsage()
      • printParams

        protected void printParams()
      • parseDay

        protected void parseDay​(java.lang.String dateStr)
                         throws java.text.ParseException
        Throws:
        java.text.ParseException
      • parseStartDay

        protected java.util.Date parseStartDay​(java.lang.String dateStr)
                                        throws java.text.ParseException
        Throws:
        java.text.ParseException
      • getOutputFile

        protected java.io.File getOutputFile()