public final class LircMode2 extends Object implements IHarcHardware, ICapture, IReceive
defaultBeginTimeout, defaultCaptureMaxSize, defaultEndingTimeout| Constructor and Description |
|---|
LircMode2(boolean verbose,
int endingTimeout) |
LircMode2(InputStream inputStream,
boolean verbose,
int endingTimeout) |
LircMode2(Reader reader,
boolean verbose,
int endingTimeout) |
| Modifier and Type | Method and Description |
|---|---|
org.harctoolbox.ircore.ModulatedIrSequence |
capture()
Listens to the device and returns a sequence.
|
void |
close() |
String |
getVersion()
Returns the hardware version (not the version of the driver software).
|
boolean |
isValid()
Tries to identify instances that are not valid.
|
void |
open()
Opens the device with previously set parameters.
|
org.harctoolbox.ircore.IrSequence |
receive()
Listens to the device and returns a sequence.
|
void |
setBeginTimeout(int integer) |
void |
setCaptureMaxSize(int integer) |
void |
setDebug(int debug)
Sets a debug parameter.
|
void |
setEndingTimeout(int timeout) |
void |
setTimeout(int timeout)
Set timeout in milliseconds.
|
void |
setVerbose(boolean verbose)
Sets a verbosity flag, causing commands to be executed verbosely.
|
boolean |
stopCapture()
Signals the capturing device that it should stop capturing.
|
boolean |
stopReceive()
Signals the receiving device that it should stop receiving.
|
public LircMode2(Reader reader, boolean verbose, int endingTimeout)
public LircMode2(InputStream inputStream, boolean verbose, int endingTimeout)
public LircMode2(boolean verbose,
int endingTimeout)
public String getVersion()
IHarcHardwaregetVersion in interface IHarcHardwarepublic void setVerbose(boolean verbose)
IHarcHardwaresetVerbose in interface IHarcHardwareverbose - on or offpublic void setDebug(int debug)
IHarcHardwaresetDebug in interface IHarcHardwarepublic boolean isValid()
IHarcHardwareisValid in interface IHarcHardwarepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void open()
throws IOException
IHarcHardwareopen in interface IHarcHardwareIOExceptionpublic org.harctoolbox.ircore.ModulatedIrSequence capture()
throws HarcHardwareException,
IOException
ICapturecapture in interface ICaptureHarcHardwareException - if the device is not in valid/open state.IOExceptionpublic boolean stopCapture()
ICapturestopCapture in interface ICapturepublic void setEndingTimeout(int timeout)
setEndingTimeout in interface IIrReaderpublic org.harctoolbox.ircore.IrSequence receive()
throws IOException,
HarcHardwareException
IReceivereceive in interface IReceiveIOExceptionHarcHardwareException - if the device is not in valid/open state.public boolean stopReceive()
IReceivestopReceive in interface IReceivepublic void setTimeout(int timeout)
throws IOException
IHarcHardwaresetTimeout in interface IHarcHardwaretimeout - Timeout in milliseconds.IOExceptionpublic void setBeginTimeout(int integer)
throws IOException
setBeginTimeout in interface IIrReaderIOExceptionpublic void setCaptureMaxSize(int integer)
setCaptureMaxSize in interface IIrReaderCopyright © 2020. All rights reserved.