|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.cldc.io.j2me.socket.Protocol
public class Protocol
Connection to the J2ME socket API.
| Field Summary | |
|---|---|
protected boolean |
isopen
Input stream open flag |
protected boolean |
osopen
Output stream open flag |
| Constructor Summary | |
|---|---|
Protocol()
|
|
| Method Summary | |
|---|---|
protected static int |
available0(int handle)
|
void |
close()
Close the connection. |
protected static void |
close0(int handle)
|
void |
open(int handle,
int mode)
Open the connection |
void |
open(String name,
int mode,
boolean timeouts)
Open the connection |
protected static int |
open0(byte[] hostname,
int port,
int mode)
|
DataInputStream |
openDataInputStream()
Open and return a data input stream for a connection. |
DataOutputStream |
openDataOutputStream()
Open and return a data output stream for a connection. |
InputStream |
openInputStream()
Returns an input stream for this socket. |
OutputStream |
openOutputStream()
Returns an output stream for this socket. |
Connection |
openPrim(String name,
int mode,
boolean timeouts)
Open the connection |
protected static int |
readBuf(int handle,
byte[] b,
int off,
int len)
|
protected static int |
readByte(int handle)
|
protected static int |
writeBuf(int handle,
byte[] b,
int off,
int len)
|
protected static int |
writeByte(int handle,
int b)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean isopen
protected boolean osopen
| Constructor Detail |
|---|
public Protocol()
| Method Detail |
|---|
public void open(String name,
int mode,
boolean timeouts)
throws IOException
IOException
public Connection openPrim(String name,
int mode,
boolean timeouts)
throws IOException
openPrim in interface ConnectionBaseInterfacename - the target for the connection. It must be in this
format: "//mode - read/write mode of the connection (currently ignored).timeouts - A flag to indicate that the called wants timeout
exceptions (currently ignored).
IOException
public void open(int handle,
int mode)
throws IOException
handle - an already formed socket handle
This function is only used by com.sun.cldc.io.j2me.socketserver;
IOException
public InputStream openInputStream()
throws IOException
openInputStream in interface InputConnectionIOException - if an I/O error occurs when creating the
input stream.
public OutputStream openOutputStream()
throws IOException
openOutputStream in interface OutputConnectionIOException - if an I/O error occurs when creating the
output stream.
public void close()
throws IOException
close in interface ConnectionIOException - if an I/O error occurs when closing the
connection.
public DataInputStream openDataInputStream()
throws IOException
openDataInputStream in interface InputConnectionIOException - If an I/O error occurs
public DataOutputStream openDataOutputStream()
throws IOException
openDataOutputStream in interface OutputConnectionIOException - If an I/O error occurs
protected static int open0(byte[] hostname,
int port,
int mode)
protected static int readBuf(int handle,
byte[] b,
int off,
int len)
protected static int readByte(int handle)
protected static int writeBuf(int handle,
byte[] b,
int off,
int len)
protected static int writeByte(int handle,
int b)
protected static int available0(int handle)
protected static void close0(int handle)
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||