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

Quick Search    Search Deep

jacomma.icm.io
Class Connection  view Connection download Connection.java

java.lang.Object
  extended byjacomma.icm.io.Connection

public class Connection
extends java.lang.Object

TBA


Field Summary
static int DEFAULT_PORT
           
(package private)  ObjectReader reader_
           
(package private)  java.net.Socket sock_
           
(package private)  ObjectWriter writer_
           
 
Constructor Summary
protected Connection(java.net.Socket sock, java.io.OutputStream out, java.io.InputStream in)
           
 
Method Summary
 boolean available()
           
 void close()
           
 void flush()
           
static Connection open()
           
static Connection open(java.net.InetAddress host, int port)
           
 java.lang.Object readObject()
           
 java.lang.Object readObject(java.lang.Object hint)
           
 void writeObject(java.lang.Object obj)
           
 void writeObject(java.lang.Object obj, java.lang.Object hint)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

sock_

java.net.Socket sock_

writer_

ObjectWriter writer_

reader_

ObjectReader reader_
Constructor Detail

Connection

protected Connection(java.net.Socket sock,
                     java.io.OutputStream out,
                     java.io.InputStream in)
Method Detail

open

public static final Connection open()
                             throws java.io.IOException,
                                    java.net.UnknownHostException

open

public static final Connection open(java.net.InetAddress host,
                                    int port)
                             throws java.io.IOException

writeObject

public void writeObject(java.lang.Object obj)
                 throws java.io.IOException

writeObject

public void writeObject(java.lang.Object obj,
                        java.lang.Object hint)
                 throws java.io.IOException

readObject

public java.lang.Object readObject()
                            throws java.io.IOException

readObject

public java.lang.Object readObject(java.lang.Object hint)
                            throws java.io.IOException

available

public boolean available()
                  throws java.io.IOException

flush

public void flush()
           throws java.io.IOException

close

public void close()
           throws java.io.IOException