ooodev.adapter.io.data_output_stream_partial module

class ooodev.adapter.io.data_output_stream_partial.DataOutputStreamPartial(component, interface=com.sun.star.io.XDataOutputStream)[source]

Bases: OutputStreamPartial

Partial Class XDataOutputStream.

Parameters:
  • component (XDataOutputStream) –

  • interface (UnoInterface | None) –

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

Constructor

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

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

Return type:

None

write_boolean(value)[source]

Writes a boolean.

It is an 8-bit value. 0 means FALSE; all other values mean TRUE.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

Parameters:

value (bool) –

write_byte(value)[source]

Writes an 8-bit byte.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

Parameters:

value (int) –

write_char(value)[source]

Writes a 16-bit character.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

Parameters:

value (str) –

write_double(value)[source]

Writes a 64-bit IEEE double.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

Parameters:

value (float) –

write_float(value)[source]

Writes a 32-bit IEEE float.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

Parameters:

value (float) –

write_hyper(value)[source]

Writes a 64-bit big endian integer.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

Parameters:

value (int) –

write_long(value)[source]

Writes a 32-bit big endian integer.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

Parameters:

value (int) –

write_short(value)[source]

Writes a 16-bit big endian integer.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

Parameters:

value (int) –

write_utf(value)[source]

Writes a string in UTF format.

Raises:

com.sun.star.io.IOExceptionIOException

Return type:

None

Parameters:

value (str) –