ooodev.adapter.packages.zip.zip_file_access_partial module

class ooodev.adapter.packages.zip.zip_file_access_partial.ZipFileAccessPartial(component, interface=com.sun.star.packages.zip.XZipFileAccess)[source]

Bases: object

Partial class for XZipFileAccess.

Parameters:
  • component (XZipFileAccess) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.packages.zip.XZipFileAccess)[source]

Constructor

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

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

Return type:

None

get_stream_by_pattern(pattern)[source]

Allows to get stream by specifying a pattern.

The first stream with a name that fits to the pattern will be returned. The pattern allows to use * wildcard symbol. If the name contains * or \ symbols itself they must guarded with backslash \. The slashes have no special meaning here so they can be replaced by wildcards also.

Raises:
  • com.sun.star.container.NoSuchElementExceptionNoSuchElementException

  • com.sun.star.io.IOExceptionIOException

  • com.sun.star.packages.WrongPasswordExceptionWrongPasswordException

  • com.sun.star.packages.zip.ZipExceptionZipException

Return type:

XInputStream

Parameters:

pattern (str) –