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, separatorFields inherited from class org.harctoolbox.irscrutinizer.importer.RemoteSetImporter
remoteSet -
Constructor Summary
ConstructorsConstructorDescriptionCsvRawImporter(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 TypeMethodDescriptionvoidvoidstatic voidstatic 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) voidsetCodeColumn(int codeColumn) voidsetIncludeTail(boolean includeTail) Methods inherited from class org.harctoolbox.irscrutinizer.importer.CsvImporter
canImportDirectories, getFileExtensions, getFormatName, getSeparator, gobbleString, gobbleString, isNameMultiColumn, join, separatorsArray, setNameColumn, setNameMultiColumn, setSeparator, setSeparatorIndexMethods inherited from class org.harctoolbox.irscrutinizer.importer.RemoteSetImporter
getMetaData, getRemoteSet, hasCommands, setupCommands, setupRemote, setupRemoteSet, setupRemoteSetMethods inherited from class org.harctoolbox.irscrutinizer.importer.ReaderImporter
load, load, load, load, load, loadMethods inherited from class org.harctoolbox.irscrutinizer.importer.FileImporter
dumbLoad, getFileExtensions, ignored, load, loadFileSelector, possiblyZipLoadMethods 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, uniqueNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.harctoolbox.irscrutinizer.importer.ICommandImporter
getCommand, getCommands, getConcatenatedCommandsMethods 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:
IOExceptionParseExceptionFileNotFoundExceptionorg.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:
loadin classReaderImporter- Throws:
IOExceptionParseExceptionorg.harctoolbox.ircore.InvalidArgumentException
-
load
- Specified by:
loadin interfaceIReaderImporter- Specified by:
loadin classReaderImporter- Parameters:
reader-origin-- Throws:
IOException- Generic IO error.
-