org.lirc
Interface Receiver

All Known Implementing Classes:
StreamReceiver

public interface Receiver

Reads signals from the lircd socket. The actual work is done by a platform-specific Receiver. Most applications wouldn't use this class directly, use LIRCClient instead. Usage:

Receiver rec = ReceiverFactory.createReceiver();

while (keepListening){
String code = rec.readCode();
// do something with the code
}

rec.close();

Version:
$Revision: 1.3 $
Author:
Bjorn Bringert (bjorn@mumblebee.com)
See Also:
ReceiverFactory

Method Summary
 void close()
          Disconnects from the socket.
 java.lang.String readCode()
          Reads a string from the daemon.
 

Method Detail

close

public void close()
Disconnects from the socket.

readCode

public java.lang.String readCode()
                          throws LIRCException
Reads a string from the daemon. Blocks if there is nothing to read.
Returns:
'code' 'repeat count' 'button name' 'remote control name'
Throws:
LIRCException - if there was a problem reading