PipedConnection is a component that implements the
XConnection Interface.
It is useful for Thread communication in one Process.
com.sun.star.connection.XConnection , com.sun.star.comp.loader.JavaLoader
| Modifier and Type | Field and Description |
|---|---|
| private static final String | __serviceName
The name of the service, the |
| protected static final int | __waitTime
The amount of time in milliseconds, to wait to see check the buffers. |
| protected byte[] | |
| protected boolean | |
| protected int | |
| protected PipedConnection | |
| protected int | |
| public static final boolean | DEBUG
When set to true, enables various debugging output. |
| Access | Constructor and Description |
|---|---|
| public | PipedConnection(Object[]
Another side could be in index 0. args)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public static com. | Returns: returns aXSingleServiceFactory for creating the component.the name of the implementation for which a service is desired. implName, com.the service manager to be uses if needed. multiFactory,the registryKey. regKeyGives a factory for creating the service. |
| public synchronized void | |
| public void | |
| public String | |
| public synchronized int | Returns: the number of bytes read.the out parameter, where the bytes have to be placed. aReadBytes, int the number of bytes to read. nBytesToRead)Read the required number of bytes. |
| private synchronized void | |
| public void |
| __serviceName | back to summary |
|---|---|
| private static final String __serviceName The name of the service, the | |
| __waitTime | back to summary |
|---|---|
| protected static final int __waitTime The amount of time in milliseconds, to wait to see check the buffers. | |
| _buffer | back to summary |
|---|---|
| protected byte[] _buffer | |
| _closed | back to summary |
|---|---|
| protected boolean _closed | |
| _in | back to summary |
|---|---|
| protected int _in | |
| _otherSide | back to summary |
|---|---|
| protected PipedConnection _otherSide | |
| _out | back to summary |
|---|---|
| protected int _out | |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG When set to true, enables various debugging output. | |
| PipedConnection | back to summary |
|---|---|
| public PipedConnection(Object[] args) throws com.sun.star.uno.RuntimeException Constructs a new
| |
| __getServiceFactory | back to summary |
|---|---|
| public static com. Gives a factory for creating the service. This method is called by the
| |
| close | back to summary |
|---|---|
| public synchronized void close() throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException Closes the pipe. | |
| flush | back to summary |
|---|---|
| public void flush() throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException Flushes the buffer, notifies if necessary the other side that new data has arrived. | |
| getDescription | back to summary |
|---|---|
| public String getDescription() throws com.sun.star.uno.RuntimeException Gives a description of this pipe.
| |
| read | back to summary |
|---|---|
| public synchronized int read(byte[][] aReadBytes, int nBytesToRead) throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException Read the required number of bytes.
| |
| receive | back to summary |
|---|---|
| private synchronized void receive(byte[] aData) throws com.sun.star.io.IOException This is a private method, used to communicate internal in the pipe. | |
| write | back to summary |
|---|---|
| public void write(byte[] aData) throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException Write bytes.
| |