Package org.harctoolbox.harchardware.ir
Class Mode2Parser
java.lang.Object
org.harctoolbox.harchardware.ir.Mode2Parser
This class contains a parser for mode2 files.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intAdded at the end of IR sequences that would otherwise end with a flash. -
Constructor Summary
ConstructorsConstructorDescriptionMode2Parser(File file, int threshold) Mode2Parser(InputStream stream, int threshold) Mode2Parser(Reader reader, int threshold) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisValid()static voidorg.harctoolbox.ircore.IrSequenceList<org.harctoolbox.ircore.IrSequence>voidsetThreshold(int threshold)
-
Field Details
-
DUMMYGAP
public static final int DUMMYGAPAdded at the end of IR sequences that would otherwise end with a flash.- See Also:
-
DEFAULT_THRESHOLD
public static final int DEFAULT_THRESHOLD- See Also:
-
-
Constructor Details
-
Mode2Parser
-
Mode2Parser
- Throws:
FileNotFoundException
-
Mode2Parser
-
-
Method Details
-
main
-
isValid
public boolean isValid() -
close
- Throws:
IOException
-
readIrSequencesUntilEOF
- Throws:
IOException
-
readIrSequence
- Throws:
ParseExceptionIOException
-
setThreshold
public void setThreshold(int threshold) - Parameters:
threshold- the threshold to set
-