Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: embed ::
interface XStorageRawAccess
Description This interface represents main storage functionality.

Methods' Summary
getPlainRawStreamElement | allows to get a plain raw stream representing a package stream.
getRawEncrStreamElement | allows to get a raw stream representing encrypted stream with header.
insertRawEncrStreamElement | allows to insert a raw stream representing encrypted stream with header.

Methods' Details
getPlainRawStreamElement
::com::sun::star::io::XInputStream
getPlainRawStreamElement( | [in] string | sStreamName )
raises( | InvalidStorageException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::io::IOException, StorageWrappedTargetException );
Description allows to get a plain raw stream representing a package stream. This method returns a stream from the package as it is stored there, without any decompression/description and etc. This method can be helpful to check file consistency, for example by signing. Returns the raw representation of encrypted stream with all the data required to copy the stream without information loss Parameter sStreamName the name of the substream that should be open Throws ::com::sun::star::embed::InvalidStorageException this storage is in invalid state for any reason Throws ::com::sun::star::lang::IllegalArgumentException one of provided arguments is illegal Throws ::com::sun::star::container::NoSuchElementException there is no element with specified name Throws ::com::sun::star::io::IOException in case of io errors during stream opening Throws ::com::sun::star::embed::StorageWrappedTargetException wraps other exceptions
getRawEncrStreamElement
::com::sun::star::io::XInputStream
getRawEncrStreamElement( | [in] string | sStreamName )
raises( | InvalidStorageException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::packages::NoEncryptionException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::io::IOException, StorageWrappedTargetException );
Description allows to get a raw stream representing encrypted stream with header. This method allows to transport encrypted streams without decryption. Mainly this method is introduced to allow to copy one encrypted storage stream to another without decryption. It is not recommended to use this method outside of storage implementation since different storages implementation could have different encryption format. If the method is used outside of storage implementation the user code is responsible to get sure that the raw format of source and target storages is the same. The difference of this method from the previous one is that it handles only encrypted streams. The contents of returned by these methods streams can differ for the same entry, since this method can add additional data into the stream to allow successful insertion. Parameter sStreamName the name of the substream that should be open Parameter xInputStream a raw stream representing encrypted stream Throws ::com::sun::star::embed::InvalidStorageException this storage is in invalid state for any reason Throws ::com::sun::star::lang::IllegalArgumentException one of provided arguments is illegal Throws ::com::sun::star::packages::NoEncryptionException the stream is not an encrypted one Throws ::com::sun::star::container::NoSuchElementException there is no element with specified name Throws ::com::sun::star::io::IOException in case of io errors during stream opening Throws ::com::sun::star::embed::StorageWrappedTargetException wraps other exceptions
insertRawEncrStreamElement
void
insertRawEncrStreamElement( | [in] string | sStreamName,
| [in] ::com::sun::star::io::XInputStream | xInStream )
raises( | InvalidStorageException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::packages::NoRawFormatException, ::com::sun::star::container::ElementExistException, ::com::sun::star::io::IOException, StorageWrappedTargetException );
Description allows to insert a raw stream representing encrypted stream with header. This method allows to insert a stream retrieved by XStorageRawAccess::getRawEncrStreamElement() into a storage. This method allows to transport encrypted streams without decryption. Mainly this method is introduced to allow to copy one encrypted storage stream to another without decryption. It is not recommended to use this method outside of storage implementation since different storages implementation could have different encryption format. Parameter sStreamName the name of the substream that should be open Parameter xInputStream a raw stream representing encrypted stream Throws ::com::sun::star::embed::InvalidStorageException this storage is in invalid state for any reason Throws ::com::sun::star::lang::IllegalArgumentException one of provided arguments is illegal Throws ::com::sun::star::packages::NoRawFormatException the stream is not one of raw package stream format Throws ::com::sun::star::container::ElementExistException an element with specified name already exists Throws ::com::sun::star::io::IOException in case of io errors during stream opening Throws ::com::sun::star::embed::StorageWrappedTargetException wraps other exceptions

Top of Page

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.