javacli
Class LocalSocket

java.lang.Object
  extended by java.net.Socket
      extended by javacli.LocalSocket

public class LocalSocket
extends java.net.Socket


Constructor Summary
LocalSocket()
           
LocalSocket(long implObj)
           
LocalSocket(java.lang.String address, int port)
           
 
Method Summary
 LocalSocket accept()
           
 void cancelAccept()
           
 void close()
           
static LocalSocket create(int port)
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 void open(java.lang.String address, int port)
           
 void setSoLinger(boolean on, int linger)
           
 void setTcpNoDelay(boolean on)
           
 
Methods inherited from class java.net.Socket
bind, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoTimeout, setTrafficClass, shutdownInput, shutdownOutput, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalSocket

public LocalSocket(long implObj)
            throws java.net.SocketException
Throws:
java.net.SocketException

LocalSocket

public LocalSocket(java.lang.String address,
                   int port)
            throws java.net.SocketException
Throws:
java.net.SocketException

LocalSocket

public LocalSocket()
            throws java.net.SocketException
Throws:
java.net.SocketException
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Overrides:
getInputStream in class java.net.Socket
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Overrides:
getOutputStream in class java.net.Socket
Throws:
java.io.IOException

setTcpNoDelay

public void setTcpNoDelay(boolean on)
Overrides:
setTcpNoDelay in class java.net.Socket

setSoLinger

public void setSoLinger(boolean on,
                        int linger)
Overrides:
setSoLinger in class java.net.Socket

open

public void open(java.lang.String address,
                 int port)

close

public void close()
Overrides:
close in class java.net.Socket

accept

public LocalSocket accept()
                   throws java.net.SocketException
Throws:
java.net.SocketException

cancelAccept

public void cancelAccept()

create

public static LocalSocket create(int port)
                          throws java.net.SocketException
Throws:
java.net.SocketException