org.harctoolbox.irscrutinizer.importer
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:
- java.io.Serializable, ICommandImporter, IFileImporter, IImporter, IReaderImporter, IRemoteSetImporter
public class IctImporter
- extends RemoteSetImporter
- implements IReaderImporter, java.io.Serializable
This class allows for the creation of rendered IR signals in the ICT Format, used by the IRScope.
- See Also:
- Serialized Form
|
Constructor Summary |
IctImporter()
|
IctImporter(boolean invokeRepeatFinder)
Parses an input file into an ModulatedIrSequence. |
|
Method Summary |
java.lang.String[][] |
getFileExtensions()
|
java.lang.String |
getFormatName()
|
static java.util.Collection<org.harctoolbox.girr.Command> |
importer(java.io.BufferedReader reader,
boolean invokeRepeatFinder)
|
static java.util.Collection<org.harctoolbox.girr.Command> |
importer(java.io.File file,
boolean invokeRepeatFinder)
|
void |
load(java.io.Reader reader,
java.lang.String origin)
|
void |
setInvokeRepeatFinder(boolean invokeRepeatFinder)
|
| Methods inherited from class org.harctoolbox.irscrutinizer.importer.Importer |
addCommand, addCommands, clearCommands, getCommand, getCommandIndex, getCommands, getConcatenatedCommands, getHomeUrl, getOrigin, prepareLoad, setCreatingUser, setFallbackFrequency, setGenerateCcf, setGenerateRaw, setInvokeDecodeIr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IctImporter
public IctImporter()
IctImporter
public IctImporter(boolean invokeRepeatFinder)
- 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.
- Parameters:
invokeRepeatFinder -
setInvokeRepeatFinder
public void setInvokeRepeatFinder(boolean invokeRepeatFinder)
load
public void load(java.io.Reader reader,
java.lang.String origin)
throws java.io.IOException
- Specified by:
load in interface IReaderImporter- Specified by:
load in class ReaderImporter
- Throws:
java.io.IOException - Generic IO error.
importer
public static java.util.Collection<org.harctoolbox.girr.Command> importer(java.io.File file,
boolean invokeRepeatFinder)
throws java.io.IOException,
java.text.ParseException
- Throws:
java.io.IOException
java.text.ParseException
importer
public static java.util.Collection<org.harctoolbox.girr.Command> importer(java.io.BufferedReader reader,
boolean invokeRepeatFinder)
throws java.io.IOException
- Throws:
java.io.IOException
getFileExtensions
public java.lang.String[][] getFileExtensions()
- Specified by:
getFileExtensions in interface IFileImporter- Specified by:
getFileExtensions in class FileImporter
getFormatName
public java.lang.String getFormatName()
- Specified by:
getFormatName in interface IImporter
- Returns:
- Name of the importer. May contain spaces and other "funny" characters. Should be one word, and not end with "Importer" or such.