|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexample.bluetooth.demo.BTImageServer
final class BTImageServer
Established the BT service, accepts connections and send the requested image silently.
Constructor Summary | |
---|---|
BTImageServer(GUIImageServer parent)
Constructs the bluetooth server, but it is initialized in the different thread to "avoid dead lock". |
Method Summary | |
---|---|
(package private) boolean |
changeImageInfo(java.lang.String name,
boolean isPublished)
Updates the service record with the information about the published images availability. |
(package private) void |
destroy()
Destroy a work with bluetooth - exits the accepting thread and close notifier. |
void |
run()
Accepts a new client and send him/her a requested image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
BTImageServer(GUIImageServer parent)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
boolean changeImageInfo(java.lang.String name, boolean isPublished)
This method is invoked after the caller has checked already that the real action should be done.
void destroy()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |