Package cdc.util.csv.tools
Class AbstractFilter<M extends AbstractFilter.BaseMainArgs>
- java.lang.Object
-
- cdc.util.csv.tools.AbstractFilter<M>
-
- Type Parameters:
M- The Main Arguments type.
- Direct Known Subclasses:
Anonymizer,SeparatorConverter
public abstract class AbstractFilter<M extends AbstractFilter.BaseMainArgs> extends Object
Base class used to create CSV filters.- Author:
- Damien Carbonne
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractFilter.BaseMainArgs
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFilter(M margs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidaddSpecificBaseOptions(org.apache.commons.cli.Options options)protected static voidanalyze(org.apache.commons.cli.CommandLine cl, AbstractFilter.BaseMainArgs margs)protected ReadergetInputReader()protected WritergetOutputWriter()
-
-
-
Field Detail
-
margs
protected final M extends AbstractFilter.BaseMainArgs margs
-
COLUMNS
protected static final String COLUMNS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractFilter
protected AbstractFilter(M margs)
-
-
Method Detail
-
getInputReader
protected Reader getInputReader() throws IOException
- Throws:
IOException
-
getOutputWriter
protected Writer getOutputWriter() throws IOException
- Throws:
IOException
-
addSpecificBaseOptions
protected static void addSpecificBaseOptions(org.apache.commons.cli.Options options)
-
analyze
protected static void analyze(org.apache.commons.cli.CommandLine cl, AbstractFilter.BaseMainArgs margs) throws org.apache.commons.cli.ParseException- Throws:
org.apache.commons.cli.ParseException
-
-