Class CsvParametrizedImporter
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
org.harctoolbox.irscrutinizer.importer.CsvParametrizedImporter
- All Implemented Interfaces:
Serializable
,ICommandImporter
,IFileImporter
,IImporter
,IReaderImporter
,IRemoteSetImporter
This class does something interesting and useful. Or not...
Columns are numbered starting with 1.
- See Also:
-
Field Summary
Fields inherited from class org.harctoolbox.irscrutinizer.importer.CsvImporter
invalid, lineNo, nameColumn, nameMultiColumn, separator
Fields inherited from class org.harctoolbox.irscrutinizer.importer.RemoteSetImporter
remoteSet
-
Constructor Summary
ConstructorDescriptionCsvParametrizedImporter
(int separatorIndex, int nameColumn, boolean nameMultiColumn, boolean verbose, int base, int Fcolumn, int Dcolumn, int Scolumn, int protocolColumn, int miscParametersColumn) CsvParametrizedImporter
(String separator, int nameColumn, boolean nameMultiColumn, boolean verbose, int numberBase, int Fcolumn, int Dcolumn, int Scolumn, int protocolColumn, int miscParametersColumn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
static void
static Collection<org.harctoolbox.girr.Command>
process
(Reader reader, String separator, int nameColumn, boolean nameMultiColumn, String filename, boolean verbose, int base, int Fcolumn, int Dcolumn, int Scolumn, int protocolColumn, int miscParametersColumn) void
setDColumn
(int dColumn) void
setFColumn
(int fColumn) void
setNumberBase
(int numberBase) void
setProtocolColumn
(int protocolColumn) void
setSColumn
(int sColumn) Methods inherited from class org.harctoolbox.irscrutinizer.importer.CsvImporter
canImportDirectories, getFileExtensions, getFormatName, getSeparator, gobbleString, gobbleString, isNameMultiColumn, join, separatorsArray, setNameColumn, setNameMultiColumn, setSeparator, setSeparatorIndex
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
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
-
Constructor Details
-
CsvParametrizedImporter
public CsvParametrizedImporter(int separatorIndex, int nameColumn, boolean nameMultiColumn, boolean verbose, int base, int Fcolumn, int Dcolumn, int Scolumn, int protocolColumn, int miscParametersColumn) -
CsvParametrizedImporter
public CsvParametrizedImporter(String separator, int nameColumn, boolean nameMultiColumn, boolean verbose, int numberBase, int Fcolumn, int Dcolumn, int Scolumn, int protocolColumn, int miscParametersColumn)
-
-
Method Details
-
process
public static Collection<org.harctoolbox.girr.Command> process(Reader reader, String separator, int nameColumn, boolean nameMultiColumn, String filename, boolean verbose, int base, int Fcolumn, int Dcolumn, int Scolumn, int protocolColumn, int miscParametersColumn) throws IOException - Throws:
IOException
-
main
-
setProtocolColumn
public void setProtocolColumn(int protocolColumn) - Parameters:
protocolColumn
- the protocolColumn to set
-
setNumberBase
public void setNumberBase(int numberBase) - Parameters:
numberBase
- the numberBase to set
-
setFColumn
public void setFColumn(int fColumn) - Parameters:
fColumn
- the fColumn to set
-
setDColumn
public void setDColumn(int dColumn) - Parameters:
dColumn
- the dColumn to set
-
setSColumn
public void setSColumn(int sColumn) - Parameters:
sColumn
- the sColumn to set
-
load
public void load(File file, String origin, String charsetName) throws FileNotFoundException, IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException - Overrides:
load
in classReaderImporter
- Throws:
FileNotFoundException
IOException
ParseException
org.harctoolbox.ircore.InvalidArgumentException
-
load
- Specified by:
load
in interfaceIReaderImporter
- Specified by:
load
in classReaderImporter
- Throws:
IOException
- Generic IO error.
-