A class implementing a given protocol prot must be named
com.sun.star.lib.uno.protocols.prot.prot
and must have a public constructor that takes four arguments: The first
argument of type com.sun.star.uno.IBridge must not be null. The
second argument of type String represents any attributes; it may
be null if there are no attributes. The third argument of type
java.io.InputStream must not be null. The fourth argument of
type java.io.OutputStream must not be null.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Message | Returns: a non-null message; if the input stream is exhausted, ajava.io.IOException is thrown instead.Reads a request or reply message. |
| public void | |
| public void | writeReply(boolean
true if the reply corresponds to a raised
exception.a non-null TID. tid, Object if result)exception is true, a non-null
UNO exception; otherwise, a UNO return value, which may be null to
represent a VOID return value.Writes a reply message. |
| public boolean | Returns: true if the request message is sent as a synchronous
request.a non-null OID. oid, TypeDescription a non-null UNO type. type, String a non-null function (the name of a UNO interface method
or attribute compatible with the given function, ThreadId type, or either
"queryInterface" or "release").a non-null TID. tid, Object[] a list of UNO arguments compatible with the given
arguments)type and function; may be null to represent
an empty list.Writes a request message. |
| init | back to summary |
|---|---|
| public void init() throws IOException Initializes the connection. This method must be called exactly once, after the
| |
| readMessage | back to summary |
|---|---|
| public Message readMessage() throws IOException Reads a request or reply message. Access to this method from multiple threads must be properly synchronized.
| |
| terminate | back to summary |
|---|---|
| public void terminate() | |
| writeReply | back to summary |
|---|---|
| public void writeReply(boolean exception, ThreadId tid, Object result) throws IOException Writes a reply message. | |
| writeRequest | back to summary |
|---|---|
| public boolean writeRequest(String oid, TypeDescription type, String function, ThreadId tid, Object[] arguments) throws IOException Writes a request message.
| |