Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.barteo.cldc.datagram
Class Connection  view Connection download Connection.java

java.lang.Object
  extended bycom.barteo.cldc.datagram.Connection
All Implemented Interfaces:
javax.microedition.io.Connection, javax.microedition.io.DatagramConnection

public class Connection
extends java.lang.Object
implements javax.microedition.io.DatagramConnection


Field Summary
(package private) static java.lang.String NOT_IMPLEMENTED
           
 
Constructor Summary
Connection()
           
 
Method Summary
 void close()
           
 int getMaximumLength()
           
 int getNominalLength()
           
 javax.microedition.io.Datagram newDatagram(byte[] buf, int size)
           
 javax.microedition.io.Datagram newDatagram(byte[] buf, int size, java.lang.String addr)
           
 javax.microedition.io.Datagram newDatagram(int size)
           
 javax.microedition.io.Datagram newDatagram(int size, java.lang.String addr)
           
 void receive(javax.microedition.io.Datagram dgram)
           
 void send(javax.microedition.io.Datagram dgram)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_IMPLEMENTED

static final java.lang.String NOT_IMPLEMENTED
See Also:
Constant Field Values
Constructor Detail

Connection

public Connection()
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface javax.microedition.io.Connection

getMaximumLength

public int getMaximumLength()
                     throws java.io.IOException
Specified by:
getMaximumLength in interface javax.microedition.io.DatagramConnection

getNominalLength

public int getNominalLength()
                     throws java.io.IOException
Specified by:
getNominalLength in interface javax.microedition.io.DatagramConnection

send

public void send(javax.microedition.io.Datagram dgram)
          throws java.io.IOException
Specified by:
send in interface javax.microedition.io.DatagramConnection

receive

public void receive(javax.microedition.io.Datagram dgram)
             throws java.io.IOException
Specified by:
receive in interface javax.microedition.io.DatagramConnection

newDatagram

public javax.microedition.io.Datagram newDatagram(int size)
                                           throws java.io.IOException
Specified by:
newDatagram in interface javax.microedition.io.DatagramConnection

newDatagram

public javax.microedition.io.Datagram newDatagram(int size,
                                                  java.lang.String addr)
                                           throws java.io.IOException
Specified by:
newDatagram in interface javax.microedition.io.DatagramConnection

newDatagram

public javax.microedition.io.Datagram newDatagram(byte[] buf,
                                                  int size)
                                           throws java.io.IOException
Specified by:
newDatagram in interface javax.microedition.io.DatagramConnection

newDatagram

public javax.microedition.io.Datagram newDatagram(byte[] buf,
                                                  int size,
                                                  java.lang.String addr)
                                           throws java.io.IOException
Specified by:
newDatagram in interface javax.microedition.io.DatagramConnection