// first try to retrieve storage open mode if any // by default the storage will be open in readonly mode
sal_Int32 nStorageMode = embed::ElementModes::READ; if ( nArgNum >= 2 )
{ if( !( aArguments[1] >>= nStorageMode ) )
{ throw lang::IllegalArgumentException(
(u"second argument to css.embed.FileSystemStorageFactory." "createInstanceWithArguments must be a" " css.embed.ElementModes"_ustr),
getXWeak(), -1);
} // it's always possible to read written storage in this implementation
nStorageMode |= embed::ElementModes::READ;
}
// retrieve storage source URL
OUString aURL;
if ( !( aArguments[0] >>= aURL ) || aURL.isEmpty() )
{ throw lang::IllegalArgumentException(
(u"first argument to" " css.embed.FileSystemStorageFactory.createInstanceWithArguments" " must be a (non-empty) URL"_ustr),
getXWeak(), -1);
}
// allow to use other ucp's // if ( !isLocalNotFile_Impl( aURL ) ) if ( aURL.startsWithIgnoreAsciiCase("vnd.sun.star.pkg:")
|| aURL.startsWithIgnoreAsciiCase("vnd.sun.star.zip:")
|| ::utl::UCBContentHelper::IsDocument( aURL ) )
{ throw lang::IllegalArgumentException(
("URL \"" + aURL + "\" passed as first argument to" " css.embed.FileSystemStorageFactory.createInstanceWithArguments" " must be a file URL denoting a directory"),
getXWeak(), -1);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.