Package wt.method

Class WriterProxy

java.lang.Object
wt.method.WriterProxy
All Implemented Interfaces:
Serializable

public class WriterProxy extends Object implements Serializable
A Windchill RMI method server argument class to proxy a Writer from server-side code to a client-side Writer. It works whether the client and server code are separate or colocated in the same process.

Supported API: true
See Also:
  • Method Details

    • getWriter

      public Writer getWriter() throws IOException
      Get writer in server that will write to client's writer. Caller MUST call closeWriter in a finally block when done writing. The returned output stream is already buffered for efficient transfer.

      Supported API: true
      Throws:
      IOException
    • closeWriter

      public void closeWriter() throws IOException
      Signal the end of proxied output. This is required by the communication protocol, but it does not close the client's output stream.

      Supported API: true
      Throws:
      IOException