| Constructor and Description |
|---|
urp(com.sun.star.uno.IBridge bridge,
String attributes,
InputStream input,
OutputStream output) |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initializes the connection.
|
Message |
readMessage()
Reads a request or reply message.
|
void |
terminate() |
void |
writeReply(boolean exception,
ThreadId tid,
Object result)
Writes a reply message.
|
boolean |
writeRequest(String oid,
com.sun.star.lib.uno.typedesc.TypeDescription type,
String function,
ThreadId tid,
Object[] arguments)
Writes a request message.
|
public urp(com.sun.star.uno.IBridge bridge,
String attributes,
InputStream input,
OutputStream output)
public void init()
throws IOException
IProtocolThis method must be called exactly once, after the
readMessage loop has already been established.
init in interface IProtocolIOExceptionIProtocol.init()public void terminate()
terminate in interface IProtocolIProtocol.terminate()public Message readMessage() throws IOException
IProtocolAccess to this method from multiple threads must be properly synchronized.
readMessage in interface IProtocoljava.io.IOException is thrown instead.IOExceptionIProtocol.readMessage()public boolean writeRequest(String oid, com.sun.star.lib.uno.typedesc.TypeDescription type, String function, ThreadId tid, Object[] arguments) throws IOException
IProtocolwriteRequest in interface IProtocoloid - a non-null OID.type - a non-null UNO type.function - a non-null function (the name of a UNO interface method
or attribute compatible with the given type, or either
"queryInterface" or "release").tid - a non-null TID.arguments - a list of UNO arguments compatible with the given
type and function; may be null to represent
an empty list.true if the request message is sent as a synchronous
request.IOExceptionIProtocol.writeRequest(java.lang.String, com.sun.star.lib.uno.typedesc.TypeDescription, java.lang.String, com.sun.star.lib.uno.environments.remote.ThreadId, java.lang.Object[])public void writeReply(boolean exception,
ThreadId tid,
Object result)
throws IOException
IProtocolwriteReply in interface IProtocolexception - true if the reply corresponds to a raised
exception.tid - a non-null TID.result - if exception is true, a non-null
UNO exception; otherwise, a UNO return value, which may be null to
represent a VOID return value.IOExceptionIProtocol.writeReply(boolean, com.sun.star.lib.uno.environments.remote.ThreadId, java.lang.Object)