org.lirc
Class StreamReceiver
java.lang.Object
|
+--org.lirc.StreamReceiver
- All Implemented Interfaces:
- Receiver
- Direct Known Subclasses:
- LinuxReceiver, TCPReceiver
- public class StreamReceiver
- extends java.lang.Object
- implements Receiver
Superclass for receviers that receive lirc data on an input stream.
- Version:
- $Revision: 1.1 $
- Author:
- Bjorn Bringert (bjorn@mumblebee.com)
Method Summary |
void |
close()
Closes the input stream. |
void |
finalize()
|
java.lang.String |
readCode()
Reads a string from the daemon. |
protected void |
setInput(java.io.InputStream inStream)
Sets the input stream that this recevier reads from. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamReceiver
public StreamReceiver()
throws LIRCException
- Creates a new StreamReceiver
StreamReceiver
public StreamReceiver(java.io.InputStream inStream)
throws LIRCException
- Creates a new StreamReceiver
setInput
protected void setInput(java.io.InputStream inStream)
- Sets the input stream that this recevier reads from.
close
public void close()
- Closes the input stream.
- Specified by:
close
in interface Receiver
finalize
public void finalize()
- Overrides:
finalize
in class java.lang.Object
readCode
public java.lang.String readCode()
throws LIRCException
- Reads a string from the daemon. Blocks if there is nothing to read.
- Specified by:
readCode
in interface Receiver
- Returns:
- 'code' 'repeat count' 'button name' 'remote control name'
- Throws:
LIRCException
- if there was a problem reading