org.lirc
Class LinuxReceiver

java.lang.Object
  |
  +--org.lirc.StreamReceiver
        |
        +--org.lirc.LinuxReceiver
All Implemented Interfaces:
Receiver

public class LinuxReceiver
extends StreamReceiver

Used to read signals from the lircd Unix Socket. Don't use this class directly, use ReceiverFactory instead.

Version:
$Revision: 1.6 $
Author:
Bjorn Bringert (bjorn@mumblebee.com)

Constructor Summary
LinuxReceiver()
          Connects to a unix socket.
LinuxReceiver(java.lang.String socketName)
          Connects to a unix socket.
 
Method Summary
 void close()
          Disconnects from the socket.
 
Methods inherited from class org.lirc.StreamReceiver
finalize, readCode, setInput
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxReceiver

public LinuxReceiver()
              throws LIRCException
Connects to a unix socket. If the system property org.lirc.LinuxReceiver.socketName is set its value is used as the socket name, otherwise "/dev/lircd" is used.
Throws:
LIRCException - if it cannot connect.

LinuxReceiver

public LinuxReceiver(java.lang.String socketName)
              throws LIRCException
Connects to a unix socket.
Parameters:
socketName - name of the socket (e.g. '/dev/lircd')
Throws:
LIRCException - if it cannot connect.
Method Detail

close

public void close()
Disconnects from the socket.
Overrides:
close in class StreamReceiver