db4o 8.0

com.db4o.cs.foundation
Class NetworkSocketBase

java.lang.Object
  extended by com.db4o.cs.foundation.NetworkSocketBase
All Implemented Interfaces:
Socket4
Direct Known Subclasses:
NetworkSocket

public abstract class NetworkSocketBase
extends java.lang.Object
implements Socket4


Constructor Summary
NetworkSocketBase(java.net.Socket socket)
           
NetworkSocketBase(java.net.Socket socket, java.lang.String hostName)
           
 
Method Summary
 void close()
           
 void flush()
           
 boolean isConnected()
           
 Socket4 openParallelSocket()
           
 int read(byte[] a_bytes, int a_offset, int a_length)
           
 void setSoTimeout(int timeout)
           
 java.lang.String toString()
           
 void write(byte[] bytes, int off, int len)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkSocketBase

public NetworkSocketBase(java.net.Socket socket)
                  throws java.io.IOException
Throws:
java.io.IOException

NetworkSocketBase

public NetworkSocketBase(java.net.Socket socket,
                         java.lang.String hostName)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface Socket4
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface Socket4
Throws:
java.io.IOException

isConnected

public boolean isConnected()
Specified by:
isConnected in interface Socket4

read

public int read(byte[] a_bytes,
                int a_offset,
                int a_length)
         throws java.io.IOException
Specified by:
read in interface Socket4
Throws:
java.io.IOException

setSoTimeout

public void setSoTimeout(int timeout)
Specified by:
setSoTimeout in interface Socket4

write

public void write(byte[] bytes,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in interface Socket4
Throws:
java.io.IOException

openParallelSocket

public Socket4 openParallelSocket()
                           throws java.io.IOException
Specified by:
openParallelSocket in interface Socket4
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.