ooodev.adapter.io.output_stream_partial module
- class ooodev.adapter.io.output_stream_partial.OutputStreamPartial(component, interface=com.sun.star.io.XOutputStream)[source]
Bases:
object
Partial Class XOutputStream.
- Parameters:
component (XOutputStream) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.io.XOutputStream)[source]
Constructor
- Parameters:
component (XOutputStream) – UNO Component that implements
com.sun.star.io.XOutputStream
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XOutputStream
.
- Return type:
None
- close_output()[source]
Gets called to indicate that all data has been written.
If this method has not yet been called, no attached XInputStream receives an EOF signal. No further bytes may be written after this method has been called.
- Raises:
com.sun.star.io.NotConnectedException –
NotConnectedException
com.sun.star.io.BufferSizeExceededException –
BufferSizeExceededException
com.sun.star.io.IOException –
IOException
- Return type:
None
- flush()[source]
flushes out of the stream any data that may exist in buffers.
The semantics of this method are rather vague. See com.sun.star.io.XAsyncOutputMonitor.waitForCompletion() for a similar method with very specific semantics, that is useful in certain scenarios.
- Raises:
com.sun.star.io.NotConnectedException –
NotConnectedException
com.sun.star.io.BufferSizeExceededException –
BufferSizeExceededException
com.sun.star.io.IOException –
IOException
- Return type:
None
- write_bytes(*data)[source]
Writes the whole sequence to the stream.
(blocking call)
- Raises:
com.sun.star.io.NotConnectedException –
NotConnectedException
com.sun.star.io.BufferSizeExceededException –
BufferSizeExceededException
com.sun.star.io.IOException –
IOException
- Return type:
None
- Parameters:
data (int) –