|
" 2013 FRC Java API " |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 abstract Connection open(String protocol,
String name,
int mode,
boolean timeouts)
throws IOException,
ConnectionNotFoundException
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 InputStream openInputStream()
throws IOException
IOException - If an I/O error occurs
public OutputStream openOutputStream()
throws IOException
IOException - If an I/O error occurs
public void close()
throws IOException
close in interface ConnectionIOException - If an I/O error occurs
public DataInputStream openDataInputStream()
throws IOException,
ConnectionNotFoundException
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,
ConnectionNotFoundException
IllegalArgumentException - If a parameter is invalid.
ConnectionNotFoundException - If the connection cannot
be found.
IOException - If some other kind of I/O error occurs.
|
" 2013 FRC Java API " |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||