com.sun.star.lib.connections.socket
Class SocketConnection
java.lang.Object
|
+--com.sun.star.lib.connections.socket.SocketConnection
- All Implemented Interfaces:
- com.sun.star.connection.XConnection, com.sun.star.uno.XInterface
- public synchronized class SocketConnection
- extends java.lang.Object
- implements com.sun.star.connection.XConnection
Field Summary |
private static boolean |
DEBUG
|
protected java.lang.String |
_description
|
protected java.io.InputStream |
_inputStream
|
protected java.io.OutputStream |
_outputStream
|
protected java.net.Socket |
_socket
|
Fields inherited from interface com.sun.star.connection.XConnection |
UIK, UNORUNTIMEDATA, UNOTYPEINFO |
Constructor Summary |
SocketConnection(java.lang.String s1,
java.net.Socket s2)
|
Method Summary |
void |
close()
|
void |
flush()
|
java.lang.String |
getDescription()
|
int |
read(byte[][] b,
int i)
|
void |
write(byte[] b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
private static final boolean DEBUG
_description
protected java.lang.String _description
_inputStream
protected java.io.InputStream _inputStream
_outputStream
protected java.io.OutputStream _outputStream
_socket
protected java.net.Socket _socket
SocketConnection
public SocketConnection(java.lang.String s1,
java.net.Socket s2)
throws java.io.IOException
close
public void close()
throws com.sun.star.io.IOException,
com.sun.star.uno.RuntimeException
- Specified by:
close
in interface com.sun.star.connection.XConnection
flush
public void flush()
throws com.sun.star.io.IOException,
com.sun.star.uno.RuntimeException
- Specified by:
flush
in interface com.sun.star.connection.XConnection
getDescription
public java.lang.String getDescription()
throws com.sun.star.uno.RuntimeException
- Specified by:
getDescription
in interface com.sun.star.connection.XConnection
read
public int read(byte[][] b,
int i)
throws com.sun.star.io.IOException,
com.sun.star.uno.RuntimeException
- Specified by:
read
in interface com.sun.star.connection.XConnection
write
public void write(byte[] b)
throws com.sun.star.io.IOException,
com.sun.star.uno.RuntimeException
- Specified by:
write
in interface com.sun.star.connection.XConnection