Class IctImporter
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.IctImporter
- All Implemented Interfaces:
Serializable,ICommandImporter,IFileImporter,IImporter,IReaderImporter,IRemoteSetImporter
This class allows for the creation of rendered IR signals in the ICT Format, used by the IRScope.
- See Also:
-
Field Summary
Fields inherited from class org.harctoolbox.irscrutinizer.importer.RemoteSetImporter
remoteSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[][]static Collection<org.harctoolbox.girr.Command> importer(BufferedReader reader, String orig) static Collection<org.harctoolbox.girr.Command> static Collection<org.harctoolbox.girr.Command> voidstatic voidvoidsetChop(boolean chop) Methods 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, load, loadMethods inherited from class org.harctoolbox.irscrutinizer.importer.FileImporter
canImportDirectories, 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
canImportDirectories, getFileExtensions, load, loadFileSelector, possiblyZipLoad
-
Constructor Details
-
IctImporter
public IctImporter()Parses an input file into an ModulatedIrSequence. Note that the ICT file may contain several IR signals in the usual sense. The are returned as one long IrSequence consisting of all the data concatenated.
-
-
Method Details
-
importer
public static Collection<org.harctoolbox.girr.Command> importer(File file, String charsetName) throws IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException - Throws:
IOExceptionParseExceptionorg.harctoolbox.ircore.InvalidArgumentException
-
importer
public static Collection<org.harctoolbox.girr.Command> importer(File file) throws IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException - Throws:
IOExceptionParseExceptionorg.harctoolbox.ircore.InvalidArgumentException
-
importer
public static Collection<org.harctoolbox.girr.Command> importer(BufferedReader reader, String orig) throws IOException, org.harctoolbox.ircore.InvalidArgumentException - Throws:
IOExceptionorg.harctoolbox.ircore.InvalidArgumentException
-
main
-
setChop
public void setChop(boolean chop) -
load
public void load(Reader reader, String origin) throws IOException, org.harctoolbox.ircore.InvalidArgumentException - Specified by:
loadin interfaceIReaderImporter- Specified by:
loadin classReaderImporter- Parameters:
reader-origin-- Throws:
IOException- Generic IO error.org.harctoolbox.ircore.InvalidArgumentException
-
getFileExtensions
- Specified by:
getFileExtensionsin interfaceIFileImporter- Specified by:
getFileExtensionsin classFileImporter
-
getFormatName
- Specified by:
getFormatNamein interfaceIImporter- Returns:
- Name of the importer. May contain spaces and other "funny" characters. Should be one word, and not end with "Importer" or such.
-