writer2latex.filter

Class 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(XMultiServiceFactory xMSF)
The constructor initializes the UCB using a supplied MultiServiceFactory

Method Summary

XInputStream
read(String sUrl)
Use the ucb to read some data from an url.
void
write(XInputStream xData, String sUrl)
Use the ucb to write some data to an url.

Constructor Details

UCBWrapper

public UCBWrapper(XMultiServiceFactory xMSF)
The constructor initializes the UCB using a supplied MultiServiceFactory
Parameters:
xMSF - a multiservicefactory supporting the UniversalContentBroker service

Method Details

read

public XInputStream read(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

write

public void write(XInputStream xData,
                  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