XConnection interface
and is uses by the SocketConnector and the SocketAcceptor.
This class is not part of the provided api.
com.sun.star.lib.connections.socket.socketAcceptor , com.sun.star.lib.connections.socket.socketConnector , com.sun.star.connection.XConnection
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected boolean | |
| protected InputStream | |
| protected ArrayList | |
| protected OutputStream | |
| protected Socket | |
| public static final boolean | DEBUG
When set to true, enables various debugging output. |
| Access | Constructor and Description |
|---|---|
| public | SocketConnection(String
the description of the connection. description, Socket the socket of the connection. socket)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public String | |
| private void | |
| private void | |
| private void | |
| public int | Returns: the number of bytes read.the outparameter, where the bytes have to be placed. bytes, int the number of bytes to read. nBytesToRead)Read the required number of bytes. |
| public void | |
| public void |
| _description | back to summary |
|---|---|
| protected String _description | |
| _firstRead | back to summary |
|---|---|
| protected boolean _firstRead | |
| _inputStream | back to summary |
|---|---|
| protected InputStream _inputStream | |
| _listeners | back to summary |
|---|---|
| protected ArrayList<com. | |
| _outputStream | back to summary |
|---|---|
| protected OutputStream _outputStream | |
| _socket | back to summary |
|---|---|
| protected Socket _socket | |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG When set to true, enables various debugging output. | |
| SocketConnection | back to summary |
|---|---|
| public SocketConnection(String description, Socket socket) throws IOException Constructs a new | |
| addStreamListener | back to summary |
|---|---|
| public void addStreamListener(com. | |
| close | back to summary |
|---|---|
| public void close() throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException Closes the connection. | |
| flush | back to summary |
|---|---|
| public void flush() throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException Flushes the buffer. | |
| getDescription | back to summary |
|---|---|
| public String getDescription() throws com.sun.star.uno.RuntimeException Gives a description of the connection.
| |
| notifyListeners_close | back to summary |
|---|---|
| private void notifyListeners_close() | |
| notifyListeners_error | back to summary |
|---|---|
| private void notifyListeners_error(com. | |
| notifyListeners_open | back to summary |
|---|---|
| private void notifyListeners_open() | |
| read | back to summary |
|---|---|
| public int read(byte[][] bytes, int nBytesToRead) throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException Read the required number of bytes.
| |
| removeStreamListener | back to summary |
|---|---|
| public void removeStreamListener(com. | |
| write | back to summary |
|---|---|
| public void write(byte[] aData) throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException Write bytes.
| |