|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.lirc.ReceiverFactory
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();
Receiver| Constructor Summary | |
ReceiverFactory()
|
|
| Method Summary | |
static Receiver |
createReceiver()
Gets an appropriate receiver for this platform. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReceiverFactory()
| Method Detail |
public static Receiver createReceiver()
throws LIRCException
org.lirc.ReceiverFactory.receiver is set
its value is treated as a fully qualified class name and the receiver is
created from that class.
Otherwise the default receiver for the platform is loaded.LIRCException - if there is a problem loading the
receiver class or connecting to the lircd daemon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||