LibreOffice
LibreOffice 24.2 SDK API Reference
|
Allows to get access to the stream of a PackageStream. More...
import"XDataSinkEncrSupport.idl";
Public Member Functions | |
::com::sun::star::io::XInputStream | getDataStream () raises ( ::com::sun::star::packages::WrongPasswordException, ::com::sun::star::packages::zip::ZipException, ::com::sun::star::io::IOException ) |
Allows to get access to the data of the PackageStream. More... | |
::com::sun::star::io::XInputStream | getRawStream () raises ( ::com::sun::star::packages::NoEncryptionException, ::com::sun::star::io::IOException ) |
Allows to get access to the data of the PackageStream as to raw stream. More... | |
void | setDataStream ([in] ::com::sun::star::io::XInputStream aStream) raises ( ::com::sun::star::io::IOException ) |
Allows to set a data stream for the PackageStream. More... | |
void | setRawStream ([in] ::com::sun::star::io::XInputStream aStream) raises ( ::com::sun::star::packages::EncryptionNotAllowedException, ::com::sun::star::packages::NoRawFormatException, ::com::sun::star::io::IOException ) |
Allows to set raw stream for the PackageStream. More... | |
::com::sun::star::io::XInputStream | getPlainRawStream () raises ( ::com::sun::star::io::IOException, ::com::sun::star::packages::NoEncryptionException ) |
Allows to get access to the raw data of the stream as it is stored in the package. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
Allows to get access to the stream of a PackageStream.
::com::sun::star::io::XInputStream getDataStream | ( | ) | ||
raises | ( | ::com::sun::star::packages::WrongPasswordException, | ||
::com::sun::star::packages::zip::ZipException, | ||||
::com::sun::star::io::IOException | ||||
) |
Allows to get access to the data of the PackageStream.
In case stream is encrypted one and the key for the stream is not set, an exception must be thrown.
com::sun::star::packages::WrongPasswordException | no key or a wrong one is set |
com::sun::star::io::IOException | in case of io problems during retrieving |
::com::sun::star::io::XInputStream getPlainRawStream | ( | ) | ||
raises | ( | ::com::sun::star::io::IOException, | ||
::com::sun::star::packages::NoEncryptionException | ||||
) |
Allows to get access to the raw data of the stream as it is stored in the package.
com::sun::star::packages::NoEncryptionException | the PackageStream object is not encrypted |
com::sun::star::io::IOException | in case of io problems during retrieving |
::com::sun::star::io::XInputStream getRawStream | ( | ) | ||
raises | ( | ::com::sun::star::packages::NoEncryptionException, | ||
::com::sun::star::io::IOException | ||||
) |
Allows to get access to the data of the PackageStream as to raw stream.
In case stream is not encrypted an exception will be thrown.
The difference of raw stream is that it contains header for encrypted data, so an encrypted stream can be copied from one PackageStream to another one without decryption.
com::sun::star::packages::NoEncryptionException | the PackageStream object is not encrypted |
com::sun::star::io::IOException | in case of io problems during retrieving |
void setDataStream | ( | [in] ::com::sun::star::io::XInputStream | aStream | ) | |
raises | ( | ::com::sun::star::io::IOException | |||
) |
Allows to set a data stream for the PackageStream.
In case PackageStream is marked as encrypted the data stream will be encrypted on storing.
aStream | new data stream |
com::sun::star::io::IOException | in case of io problems |
void setRawStream | ( | [in] ::com::sun::star::io::XInputStream | aStream | ) | |
raises | ( | ::com::sun::star::packages::EncryptionNotAllowedException, | |||
::com::sun::star::packages::NoRawFormatException, | |||||
::com::sun::star::io::IOException | |||||
) |
Allows to set raw stream for the PackageStream.
The PackageStream object can not be marked as encrypted one, an exception will be thrown in such case.
aStream | the new raw representation of stream |
com::sun::star::packages::EncryptionNotAllowedException | the PackageStream object is marked as encrypted |
com::sun::star::packages::NoRawFormatException | the stream is not a correct raw representation of encrypted package stream |
com::sun::star::io::IOException | in case of io problems during retrieving |