|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.importer.base.tokenizer.AbstractImportTokenizer
public abstract class AbstractImportTokenizer
Abstract import tokenizer class, which defines some basic utility methods for all tokenizers.
Field Summary | |
---|---|
protected List<ITokenizerOption> |
options
The tokenizer options. |
Constructor Summary | |
---|---|
AbstractImportTokenizer()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
protected Charset |
getEncoding()
|
protected String |
getOptionValue(String optionName)
|
List<ITokenizerOption> |
getTokenizerOptions()
Returns tokenizer options. |
int |
hashCode()
|
protected static int |
removeEmptyCellsFromRowEnd(RawDataRow row)
Removes empty cells from raw data row end. |
protected static String |
removeQualifier(String inString,
Character qualifier)
Removes qualifier from around the specified input string. |
void |
setEncoding(Charset encoding)
Sets the input stream encoding. |
void |
setTokenizerOptions(List<ITokenizerOption> tokenizerOptions)
Sets the tokenizer options. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pl.edu.agh.cast.importer.base.tokenizer.IImportTokenizer |
---|
tokenize |
Field Detail |
---|
protected List<ITokenizerOption> options
Constructor Detail |
---|
public AbstractImportTokenizer()
Method Detail |
---|
public void setEncoding(Charset encoding)
setEncoding
in interface IImportTokenizer
encoding
- the encoding of data contained in the input streamIImportTokenizer.setEncoding(java.nio.charset.Charset)
protected Charset getEncoding()
public void setTokenizerOptions(List<ITokenizerOption> tokenizerOptions)
setTokenizerOptions
in interface IImportTokenizer
tokenizerOptions
- the options passed to data tokenizerIImportTokenizer.setTokenizerOptions(java.util.List)
public List<ITokenizerOption> getTokenizerOptions()
getTokenizerOptions
in interface IImportTokenizer
IImportTokenizer.getTokenizerOptions()
protected String getOptionValue(String optionName)
protected static String removeQualifier(String inString, Character qualifier)
inString
- the string to remove quotes from
protected static int removeEmptyCellsFromRowEnd(RawDataRow row)
row
- the row to remove empty end cells from
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |