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
This commit is contained in:
40
odk/examples/DevelopersGuide/UCB/MyActiveDataSink.java
Normal file
40
odk/examples/DevelopersGuide/UCB/MyActiveDataSink.java
Normal file
@@ -0,0 +1,40 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user