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
Modifier and TypeFieldDescriptionstatic final int
static final int
Added at the end of IR sequences that would otherwise end with a flash. -
Constructor Summary
ConstructorDescriptionMode2Parser
(File file, int threshold) Mode2Parser
(InputStream stream, int threshold) Mode2Parser
(Reader reader, int threshold) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
isValid()
static void
org.harctoolbox.ircore.IrSequence
List<org.harctoolbox.ircore.IrSequence>
void
setThreshold
(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:
ParseException
IOException
-
setThreshold
public void setThreshold(int threshold) - Parameters:
threshold
- the threshold to set
-