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.NoSuchElementException –
NoSuchElementException
com.sun.star.io.IOException –
IOException
com.sun.star.packages.WrongPasswordException –
WrongPasswordException
com.sun.star.packages.zip.ZipException –
ZipException
- Return type:
XInputStream
- Parameters:
pattern (str) –