public final class FarIR1
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the communication port
|
java.io.InputStream |
getInputStream()
Get the input stream of the corresponding communication port
|
static FarIR1 |
getInstance()
Get an infrared operation instance and if it is failed, it will return null
|
java.io.OutputStream |
getOutputStream()
Get the output stream of the corresponding communication port
|
boolean |
init()
Power up the infrared module
|
boolean |
open()
Open the communication port
|
void |
uninit()
Power down the infrared module
|
public static final FarIR1 getInstance()
public boolean init()
public void uninit()
public boolean open() throws java.io.IOException
java.io.IOException
public java.io.InputStream getInputStream()
public java.io.OutputStream getOutputStream()
public void close()