Methods Summary |
---|
public int | getMaximumPacketSize()Determines the amount of data (maximum packet size) that can
be successfully sent in a single write operation. If the size
of data is greater than the maximum packet size, then then only
the first maximum packet size bytes of the packet are sent,
and the rest will be discarded.
If the returned values is 0, this means the transport
implementation is based on a stream protocol, i.e.
any packet size may be used.
|
public javax.microedition.io.Connection | getUnderlyingConnection()Get underlying connection.
|
public int | read(byte[] inData)Reads the packet data into specified buffer.
If the specified buffer length is 0, then 0 data
will be read into this buffer, and the rest of packet
data is lost.
|
public void | write(byte[] outData, int len)
|