ooodev.adapter.packages.zip.zip_file_access_comp module

class ooodev.adapter.packages.zip.zip_file_access_comp.ZipFileAccessComp(component)[source]

Bases: ComponentProp, ZipFileAccess2Partial

Class for managing ZipFileAccess Component.

Allows to get reading access to non-encrypted entries inside zip file.

__init__(component)[source]

Constructor

Parameters:

component (XZipFileAccess2) – UNO Component that supports com.sun.star.packages.zip.ZipFileAccess service.

Return type:

None

create_with_url(url)[source]

Create a new zip file with the given URL.

Raises:
  • com.sun.star.io.IOExceptionIOException

  • com.sun.star.ucb.ContentCreationExceptionContentCreationException

  • com.sun.star.ucb.InteractiveIOExceptionInteractiveIOException

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

Return type:

None

Parameters:

url (str) –

classmethod from_lo(lo_inst=None)[source]

Creates an instance from the Lo.

Parameters:

lo_inst (LoInst, optional) – LoInst, Defaults to Lo.current_lo.

Returns:

The instance.

Return type:

ZipFileAccessComp

property component: com.sun.star.packages.zip.ZipFileAccess

ZipFileAccess Component

Return type:

ZipFileAccess