ooodev.adapter.io.text_output_stream_partial module

class ooodev.adapter.io.text_output_stream_partial.TextOutputStreamPartial(component, interface=com.sun.star.io.XTextOutputStream)[source]

Bases: OutputStreamPartial

Partial Class XTextOutputStream.

Parameters:
  • component (XTextOutputStream) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.io.XTextOutputStream)[source]

Constructor

Parameters:
  • component (XTextOutputStream) – UNO Component that implements com.sun.star.io.XTextOutputStream interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XTextOutputStream.

Return type:

None

set_encoding(encoding)[source]

Sets character encoding.

Return type:

None

Parameters:

encoding (str) –

write_string(text)[source]

Writes a string to the stream using the encoding defined by setEncoding().

Line breaks or delimiters that may be necessary to support XTextInputStream.readLine() and XTextInputStream.readString() have to be added manually to the parameter string.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

Parameters:

text (str) –