XActiveDataSink xdSmi = (XActiveDataSink)
UnoRuntime.queryInterface(XActiveDataSink.class, mistream);
XActiveDataSource xdSmo = (XActiveDataSource)
UnoRuntime.queryInterface(XActiveDataSource.class, mostream);
XInputStream miStream = (XInputStream)
UnoRuntime.queryInterface(XInputStream.class, mistream);
XOutputStream moStream = (XOutputStream)
UnoRuntime.queryInterface(XOutputStream.class, mostream);
XInputStream PipeIn = (XInputStream)
UnoRuntime.queryInterface(XInputStream.class, aPipe);
XOutputStream PipeOut = (XOutputStream)
UnoRuntime.queryInterface(XOutputStream.class,aPipe);
xdSi.setInputStream(miStream);