Language
Asturianu (ast)
Català (ca)
Čeština (cs)
Dansk (da)
Deutsch (de)
English [US] (en-US)
Español (es)
Esperanto (eo)
Eesti keel (et)
Euskara (eu)
Français (fr)
Gàidhlig (gd)
Galego (gl)
Italiano (it)
Lietuvių (lt)
Magyar (hu)
Nederlands (nl)
Norsk (no)
Polski (pl)
Português [do Brasil] (pt-BR)
Português [Europeu] (pt)
Română (ro)
Slovenčina (sk)
Slovenščina (sl)
Suomi (fi)
Svenska (sv)
Yкраїнська (uk)
Tiếng Việt (vi)
Türkçe (tr)
ኦሮሚኛ (om)
Հայերեն (hy)
Ελληνικά (el)
български език (bg)
Русский (ru)
Cрпски [ћирилицом] (sr)
עברית (he)
हिन्दी (hi)
ភាសាខ្មែរ (km)
தமிழ் (ta)
ภาษาไทย (th)
简体中文 (zh-CN)
正體中文 (zh-TW)
日本語 (ja)
한국어 (ko)
The Free and Open Productivity Suite
:: com :: sun :: star :: embed ::
interface XHierarchicalStorageAccess
Description
This interface allows hierarchical access to storage tree.
Currently only streams can be opened using this interface.
The hierarchical access can not be mixed with a normal access. Thus when
in a storage a stream with a path "a/b/c" is accessed using hierarchical
access, another stream "a/b/d" can also be opened with hierarchical
access ( if it is still not opened ), but the substorage "a" can not be
opened ( it is locked by hierarchical access ).
Methods' Details
openStreamElementByHierarchicalName
Description
allows to get access to a child stream of the storage, using
hierarchical path.
In case the stream is open in readonly mode the
XStream::getOutputStream
method will return an empty reference.
Parameter sStreamPath
the path to the substream that should be open
Parameter nOpenMode
a mode the stream should be open in,
can be a combination of ElementModes values
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::WrongPasswordException
the provided password is wrong
Throws
::com::sun::star::io::IOException
in case of io errors during stream opening
Throws
::com::sun::star::embed::StorageWrappedTargetException
wraps other exceptions
openEncryptedStreamElementByHierarchicalName
Description
allows to get access to a child encrypted stream with password using
hierarchical path.
If storage does not allow any encryption this method will always throw
::com::sun::star::packages ::NoEncryptionException .
In case the stream is open in readonly mode the
XStream::getOutputStream
method will return an empty reference.
Parameter sStreamPath
the path to the substream that should be open
Parameter nOpenMode
a mode the stream should be open in,
can be a combination of ElementModes values
Parameter sPassword
this parameter allowes to specify a reading password for the
stream, the password must be a correct one, otherwise an
exception will be thrown
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 encrypted
Throws
::com::sun::star::packages::WrongPasswordException
the provided password is wrong
Throws
::com::sun::star::io::IOException
in case of io errors during stream opening
Throws
::com::sun::star::embed::StorageWrappedTargetException
wraps other exceptions
removeStreamElementByHierarchicalName
Description
removes a stream specified by hierarchical name from a storage.
Parameter sElementPath
the path to the element to remove
Throws
::com::sun::star::embed::InvalidStorageException
this storage is in invalid state for eny reason
Throws
::com::sun::star::lang::IllegalArgumentException
an illegal argument is provided
Throws
::com::sun::star::container::NoSuchElementException
there is no element with such name
Throws
::com::sun::star::io::IOException
in case of io errors during removing
Throws
::com::sun::star::embed::StorageWrappedTargetException
wraps other exceptions
Top of Page Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.