Package com.jalios.jcms.tools.converter
Class AbstractConverter
java.lang.Object
com.jalios.jcms.tools.converter.AbstractConverter
- Direct Known Subclasses:
JSyncLogToCSV,StoreToCSV
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.commons.cli.CommandLinegetCommandLine(String[] args) protected Fileprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidparseParams(String[] args) protected DateparseStartDay(String dateStr) protected voidprotected voidprotected voidprintErrorAndExit(String errorMsg) protected voidprotected void
-
Field Details
-
ARGUMENT_DATE_FORMAT
- See Also:
-
cmd
protected org.apache.commons.cli.CommandLine cmd -
options
protected org.apache.commons.cli.Options options -
inputFile
-
outputFile
-
startTime
protected long startTime -
endTime
protected long endTime -
isDay
protected boolean isDay
-
-
Constructor Details
-
AbstractConverter
public AbstractConverter()
-
-
Method Details
-
parseParams
-
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
-
getCommandLine
-
printUsage
protected void printUsage() -
printParams
protected void printParams() -
parseDay
- Throws:
ParseException
-
parseStartDay
- Throws:
ParseException
-
getOutputFile
-