Class CsvImporter
java.lang.Object
org.harctoolbox.irscrutinizer.importer.Importer
org.harctoolbox.irscrutinizer.importer.FileImporter
org.harctoolbox.irscrutinizer.importer.ReaderImporter
org.harctoolbox.irscrutinizer.importer.RemoteSetImporter
org.harctoolbox.irscrutinizer.importer.CsvImporter
- All Implemented Interfaces:
Serializable
,ICommandImporter
,IFileImporter
,IImporter
,IReaderImporter
,IRemoteSetImporter
- Direct Known Subclasses:
CsvParametrizedImporter
,CsvRawImporter
public abstract class CsvImporter
extends RemoteSetImporter
implements IReaderImporter, Serializable
This class does something interesting and useful. Or not...
Columns are numbered starting with 1.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected int
protected int
protected boolean
protected String
Fields inherited from class org.harctoolbox.irscrutinizer.importer.RemoteSetImporter
remoteSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
String[][]
static String
getSeparator
(int index) protected static String[]
gobbleString
(String[] chunks, int column, boolean nameMultiColumn, int basis, String aPriori, boolean rejectNumbers) protected static String
gobbleString
(String[] chunks, int column, String aPriori, boolean includeTail, int offset) boolean
protected static String
static String[]
void
setNameColumn
(int nameColumn) void
setNameMultiColumn
(boolean nameMultiColumn) void
setSeparator
(String separator) void
setSeparatorIndex
(int separatorIndex) Methods inherited from class org.harctoolbox.irscrutinizer.importer.RemoteSetImporter
getMetaData, getRemoteSet, hasCommands, setupCommands, setupRemote, setupRemoteSet, setupRemoteSet
Methods inherited from class org.harctoolbox.irscrutinizer.importer.ReaderImporter
load, load, load, load, load, load, load
Methods inherited from class org.harctoolbox.irscrutinizer.importer.FileImporter
dumbLoad, getFileExtensions, ignored, load, loadFileSelector, possiblyZipLoad
Methods inherited from class org.harctoolbox.irscrutinizer.importer.Importer
addCommand, addCommands, clearCommands, getAbsoluteTolerance, getChopThreshold, getCommand, getCommandIndex, getCommands, getConcatenatedCommands, getCreatingUser, getDummyGap, getEndingTimeout, getFallbackFrequency, getHomeUrl, getMinRepeatLastGap, getOrigin, getRelativeTolerance, isGenerateCcf, isGenerateRaw, isInvokeAnalyzer, isInvokeCleaner, isInvokeDecoder, isInvokeRepeatFinder, isVerbose, prepareLoad, setProperties, uniqueName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.harctoolbox.irscrutinizer.importer.ICommandImporter
getCommand, getCommands, getConcatenatedCommands
Methods inherited from interface org.harctoolbox.irscrutinizer.importer.IFileImporter
getFileExtensions, load, loadFileSelector, possiblyZipLoad
-
Field Details
-
invalid
protected static final int invalid- See Also:
-
separator
-
nameColumn
protected int nameColumn -
nameMultiColumn
protected boolean nameMultiColumn -
lineNo
protected int lineNo
-
-
Constructor Details
-
CsvImporter
-
-
Method Details
-
separatorsArray
-
getSeparator
-
gobbleString
-
gobbleString
-
join
-
setSeparator
- Parameters:
separator
- the separator to set
-
setSeparatorIndex
public void setSeparatorIndex(int separatorIndex) -
setNameColumn
public void setNameColumn(int nameColumn) - Parameters:
nameColumn
- the nameColumn to set
-
isNameMultiColumn
public boolean isNameMultiColumn()- Returns:
- the nameMultiColumn
-
setNameMultiColumn
public void setNameMultiColumn(boolean nameMultiColumn) - Parameters:
nameMultiColumn
- the nameMultiColumn to set
-
getFileExtensions
- Specified by:
getFileExtensions
in interfaceIFileImporter
- Specified by:
getFileExtensions
in classFileImporter
-
canImportDirectories
public boolean canImportDirectories()- Specified by:
canImportDirectories
in interfaceIFileImporter
- Overrides:
canImportDirectories
in classFileImporter
-
getFormatName
- Specified by:
getFormatName
in interfaceIImporter
- Returns:
- Name of the importer. May contain spaces and other "funny" characters. Should be one word, and not end with "Importer" or such.
-