Class CsvRawImporter
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.CsvRawImporter
- 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
ConstructorDescriptionCsvRawImporter
(int separatorIndex, int nameColumn, boolean nameMultiColumn, int codeColumn, boolean includeTail) CsvRawImporter
(String separator, int nameColumn, boolean nameMultiColumn, int codeColumn, boolean includeTail) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
static void
static Collection<org.harctoolbox.girr.Command>
process
(File file, String separator, int nameColumn, boolean nameMultiColumn, int codeColumn, boolean includeTail, boolean invokeAnalyzer, boolean invokeRepeatFinder, boolean verbose, String charsetName) void
setCodeColumn
(int codeColumn) void
setIncludeTail
(boolean includeTail) 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
-
CsvRawImporter
public CsvRawImporter(int separatorIndex, int nameColumn, boolean nameMultiColumn, int codeColumn, boolean includeTail) -
CsvRawImporter
public CsvRawImporter(String separator, int nameColumn, boolean nameMultiColumn, int codeColumn, boolean includeTail)
-
-
Method Details
-
process
public static Collection<org.harctoolbox.girr.Command> process(File file, String separator, int nameColumn, boolean nameMultiColumn, int codeColumn, boolean includeTail, boolean invokeAnalyzer, boolean invokeRepeatFinder, boolean verbose, String charsetName) throws IOException, ParseException, FileNotFoundException, org.harctoolbox.ircore.InvalidArgumentException - Throws:
IOException
ParseException
FileNotFoundException
org.harctoolbox.ircore.InvalidArgumentException
-
main
-
setCodeColumn
public void setCodeColumn(int codeColumn) - Parameters:
codeColumn
- the codeColumn to set
-
setIncludeTail
public void setIncludeTail(boolean includeTail) - Parameters:
includeTail
- the includeTail to set
-
load
public void load(File file, String origin, String charsetName) throws IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException - Overrides:
load
in classReaderImporter
- Throws:
IOException
ParseException
org.harctoolbox.ircore.InvalidArgumentException
-
load
- Specified by:
load
in interfaceIReaderImporter
- Specified by:
load
in classReaderImporter
- Throws:
IOException
- Generic IO error.
-