ooodev.adapter.ucb.simple_file_access2_partial module

class ooodev.adapter.ucb.simple_file_access2_partial.SimpleFileAccess2Partial(component, interface=com.sun.star.ucb.XSimpleFileAccess2)[source]

Bases: SimpleFileAccessPartial

Partial Class XSimpleFileAccess2.

Parameters:
  • component (XSimpleFileAccess2) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.ucb.XSimpleFileAccess2)[source]

Constructor

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

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

Return type:

None

write_file(file_url, data)[source]

Overwrites the file content with the given data.

If the file does not exist, it will be created.

Raises:

com.sun.star.uno.ExceptionException

Return type:

None

Parameters:
  • file_url (str) –

  • data (com.sun.star.io.XInputStream) –