|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.squawk.io.ConnectionBase com.sun.squawk.io.j2me.channel.Protocol
public class Protocol
This connection is used to 'channel' other connections through to an embedded J2SE VM (if any) that may support additional connection types not supported by the Squawk core code.
Constructor Summary | |
---|---|
Protocol()
Public constructor |
Method Summary | |
---|---|
StreamConnection |
acceptAndOpen()
acceptAndOpen |
void |
close()
Close the connection. |
Connection |
open(String protocol,
String name,
int mode,
boolean timeouts)
open |
InputStream |
openInputStream()
openInputStream |
OutputStream |
openOutputStream()
openOutputStream |
Methods inherited from class com.sun.squawk.io.ConnectionBase |
---|
openDataInputStream, openDataOutputStream |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.microedition.io.InputConnection |
---|
openDataInputStream |
Methods inherited from interface javax.microedition.io.OutputConnection |
---|
openDataOutputStream |
Constructor Detail |
---|
public Protocol()
Method Detail |
---|
public Connection open(String protocol, String name, int mode, boolean timeouts) throws IOException
open
in class ConnectionBase
protocol
- The URL protocolname
- The URL for the connectionmode
- The access modetimeouts
- A flag to indicate that the caller
wants timeout exceptions
ConnectionNotFoundException
- If the connection cannot
be found.
IOException
- If some other kind of I/O error occurs.public InputStream openInputStream() throws IOException
openInputStream
in interface InputConnection
openInputStream
in class ConnectionBase
IOException
- If an I/O error occurspublic OutputStream openOutputStream() throws IOException
openOutputStream
in interface OutputConnection
openOutputStream
in class ConnectionBase
IOException
- If an I/O error occurspublic StreamConnection acceptAndOpen() throws IOException
acceptAndOpen
in interface StreamConnectionNotifier
StreamConnection
to communicate with a client.
IOException
- If an I/O error occurs.public void close() throws IOException
close
in interface Connection
close
in class ConnectionBase
IOException
- If an I/O error occurs
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |