|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.squawk.io.ConnectionBase
public abstract class ConnectionBase
Base class for Connection protocols.
Constructor Summary | |
---|---|
ConnectionBase()
|
Method Summary | |
---|---|
void |
close()
Close |
abstract Connection |
open(String protocol,
String name,
int mode,
boolean timeouts)
Open a connection to a target. |
DataInputStream |
openDataInputStream()
Create and open a connection input stream. |
DataOutputStream |
openDataOutputStream()
Create and open a connection output stream. |
InputStream |
openInputStream()
Open and return a data input stream for a connection. |
OutputStream |
openOutputStream()
Open and return a data output stream for a connection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionBase()
Method Detail |
---|
public void close() throws IOException
close
in interface Connection
IOException
- If an I/O error occurspublic abstract Connection open(String protocol, String name, int mode, boolean timeouts) throws IOException
protocol
- The URL protocolname
- The URL for the connectionmode
- The access modetimeouts
- A flag to indicate that the caller
wants timeout exceptions
IllegalArgumentException
- If a parameter is invalid.
ConnectionNotFoundException
- If the connection cannot
be found.
IOException
- If some other kind of I/O error occurs.public DataInputStream openDataInputStream() throws IOException
IllegalArgumentException
- If a parameter is invalid.
ConnectionNotFoundException
- If the connection cannot
be found.
IOException
- If some other kind of I/O error occurs.public DataOutputStream openDataOutputStream() throws IOException
IllegalArgumentException
- If a parameter is invalid.
ConnectionNotFoundException
- If the connection cannot
be found.
IOException
- If some other kind of I/O error occurs.public InputStream openInputStream() throws IOException
IOException
- If an I/O error occurspublic OutputStream openOutputStream() throws IOException
IOException
- If an I/O error occurs
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |