writer2latex.filter
Class UCBWrapper

java.lang.Object
  extended by writer2latex.filter.UCBWrapper

public class UCBWrapper
extends java.lang.Object

This class wraps some uses of the Universal Content Broker into user friendly methods.


Constructor Summary
UCBWrapper(com.sun.star.lang.XMultiServiceFactory xMSF)
          The constructor initializes the UCB using a supplied MultiServiceFactory
 
Method Summary
 com.sun.star.io.XInputStream read(java.lang.String sUrl)
          Use the ucb to read some data from an url.
 void write(com.sun.star.io.XInputStream xData, java.lang.String sUrl)
          Use the ucb to write some data to an url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UCBWrapper

public UCBWrapper(com.sun.star.lang.XMultiServiceFactory xMSF)

The constructor initializes the UCB using a supplied MultiServiceFactory

Parameters:
xMSF - a multiservicefactory supporting the UniversalContentBroker service
Method Detail

write

public void write(com.sun.star.io.XInputStream xData,
                  java.lang.String sUrl)

Use the ucb to write some data to an url. Fail silently if anything goes wrong.

Parameters:
xData - the XInputStream to get the data from
sUrl - the url to write the data to

read

public com.sun.star.io.XInputStream read(java.lang.String sUrl)

Use the ucb to read some data from an url. Fail silently if anything goes wrong.

Parameters:
sUrl - the url to read the data from
Returns:
an XInputStream from which the data can be read after reading