|
Oracle Java Wireless Client | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Peripheral
The Peripheral interface represents peripheral devices in the system.
This interface provides generic methods for handling peripherals.
All peripherals must implement the Peripheral interface.
| Method Summary | |
void |
close()
Releases the underlying peripheral device, making it available to other applications. |
int |
getID()
Returns the numerical ID of the underlying peripheral device. |
java.lang.String |
getName()
Returns the name of the underlying peripheral device. |
| Method Detail |
int getID()
java.lang.String getName()
void close()
throws java.io.IOException
Peripheral instance will
result in a PeripheralNotAvailableException being thrown.
This method has no effects if the peripheral device has already been released.
java.io.IOException - if an IO error occurred.
|
Oracle Java Wireless Client | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||