Package com.jalios.jcms.tools.converter
Class AbstractConverter
- java.lang.Object
-
- com.jalios.jcms.tools.converter.AbstractConverter
-
- Direct Known Subclasses:
JSyncLogToCSV
,StoreToCSV
public abstract class AbstractConverter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
ARGUMENT_DATE_FORMAT
protected org.apache.commons.cli.CommandLine
cmd
protected long
endTime
protected java.io.File
inputFile
protected boolean
isDay
protected org.apache.commons.cli.Options
options
protected java.io.File
outputFile
protected long
startTime
-
Constructor Summary
Constructors Constructor Description AbstractConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.commons.cli.CommandLine
getCommandLine(java.lang.String[] args)
protected java.io.File
getOutputFile()
protected void
parseDay(java.lang.String dateStr)
protected void
parseDayParam()
protected void
parseEndDayParam()
protected void
parseEndTimeParam()
protected void
parseFileParam()
protected void
parseParams(java.lang.String[] args)
protected java.util.Date
parseStartDay(java.lang.String dateStr)
protected void
parseStartDayParam()
protected void
parseStartTimeParam()
protected void
printErrorAndExit(java.lang.String errorMsg)
protected void
printParams()
protected void
printUsage()
-
-
-
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
-
-
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()
-
-