Files
libreoffice/odk/examples/DevelopersGuide/UCB/MyActiveDataSink.java
Vladimir Glazounov 05297e3ff4 INTEGRATION: CWS sdk02 (1.1.2); FILE ADDED
2003/05/09 11:36:42 jsc 1.1.2.1: #109045# insert new and remove example zip file
2003-06-10 09:43:39 +00:00

40 lines
806 B
Java

// base classes
import com.sun.star.io.XActiveDataSink;
import com.sun.star.io.XInputStream;
/**
* XActiveDataSink interface implementation. Makes it possible to read
* the corresponding object from an input stream.
*/
public class MyActiveDataSink implements XActiveDataSink {
/**
* Member properties
*/
XInputStream m_aStream = null;
/**
* Constructor
*/
public MyActiveDataSink() {
super();
}
/**
* Plugs the input stream.
*
*@param XInputStream
*/
public void setInputStream( XInputStream aStream ) {
m_aStream = aStream;
}
/**
* Get the plugged stream.
*
*@return XInputStream The plugged stream
*/
public XInputStream getInputStream() {
return m_aStream;
}
}