Package org.harctoolbox.irp
Class ShortProntoParser
java.lang.Object
org.harctoolbox.ircore.AbstractIrParser
org.harctoolbox.irp.ShortProntoParser
- All Implemented Interfaces:
IrSignalParser
-
Constructor Summary
ConstructorDescriptionShortProntoParser
(Iterable<? extends CharSequence> args) ShortProntoParser
(String source) -
Method Summary
Methods inherited from class org.harctoolbox.ircore.AbstractIrParser
fixIrRemoteSilliness, getSource, mkIrSignal, mkIrSignal, toIrSequence, toIrSequence, toIrSignal, toIrSignal, toIrSignalChop, toList, toList, toList, toListChop, toListChop, toModulatedIrSequence, toModulatedIrSequence, toModulatedIrSequence, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.harctoolbox.ircore.IrSignalParser
toIrSequence, toList, toModulatedIrSequence
-
Constructor Details
-
ShortProntoParser
-
ShortProntoParser
-
-
Method Details
-
parse
- Throws:
InvalidArgumentException
-
toIrSignal
public IrSignal toIrSignal(Double fallbackFrequency, Double dummyGap) throws InvalidArgumentException Tries to interpret the string argument as Pronto.- Specified by:
toIrSignal
in interfaceIrSignalParser
- Specified by:
toIrSignal
in classAbstractIrParser
- Parameters:
fallbackFrequency
- Modulation frequency to use, if it cannot be inferred from the first parameter.dummyGap
-- Returns:
- IrSignal, or null on failure.
- Throws:
InvalidArgumentException
- If the signal looks like a Pronto, but is not correctly parseable.
-
getName
- Specified by:
getName
in interfaceIrSignalParser
-