// open a new substream, set "MediaType" and "Compressed" properties to it and write some bytes // the stream will not be encrypted if ( !m_aTestHelper.WriteBytesToEncrSubstream( xTempStorage, "SubStream1", "MediaType1", false, pBytes, sPass ) ) returnfalse;
if ( !m_aTestHelper.commitStorage( xTempStorage ) ) returnfalse;
if ( !m_aTestHelper.commitStorage( xTempStorage ) ) returnfalse;
// dispose used storages to free resources if ( !m_aTestHelper.disposeStorage( xTempStorage ) ) returnfalse;
// reopen the target storage readonly, and check contents
// the temporary file must not be locked any more after storage disposing
pArgs[1] = Integer.valueOf( ElementModes.READ );
Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs );
XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null )
{
m_aTestHelper.Error( "Can't reopen storage based on temporary file!" ); returnfalse;
}
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.