|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.squawk.io.ConnectionBase
com.sun.squawk.io.j2me.radiogram.Protocol
public class Protocol
This class provides the "radiogram" protocol for accessing the SPOT radio using datagrams.
It is an implementor of RadiogramConnection
RadiogramConnection| Constructor Summary | |
|---|---|
Protocol()
Default constructor - normally not called by user code which should use the GCF framework instead. |
|
| Method Summary | |
|---|---|
void |
close()
Close |
Connection |
open(String protocolName,
String name,
int mode,
boolean timeouts)
Open a connection to a target. |
| Methods inherited from class com.sun.squawk.io.ConnectionBase |
|---|
openDataInputStream, openDataOutputStream, openInputStream, openOutputStream |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Protocol()
| Method Detail |
|---|
public Connection open(String protocolName,
String name,
int mode,
boolean timeouts)
ConnectionBase
open in class ConnectionBaseprotocolName - The URL protocolname - The URL for the connectionmode - The access modetimeouts - A flag to indicate that the caller
wants timeout exceptions
public void close()
throws IOException
ConnectionBase
close in interface Connectionclose in class ConnectionBaseIOException - If an I/O error occurs
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||