ooodev.adapter.packages.zip.zip_file_access2_partial module

class ooodev.adapter.packages.zip.zip_file_access2_partial.ZipFileAccess2Partial(component, interface=com.sun.star.packages.zip.XZipFileAccess2)[source]

Bases: ZipFileAccessPartial, NameAccessPartial[InputStreamComp]

Partial class for XZipFileAccess2.

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

Constructor

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

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

Return type:

None

get_by_name(name)[source]

Gets the element with the specified name.

Parameters:

name (str) – The name of the element.

Returns:

The element with the specified name.

Return type:

Any

get_element_type()[source]

Gets the type of the elements contained in the container.

Returns:

The type of the elements. None means that it is a multi-type container and you cannot determine the exact types with this interface.

Return type:

Any