System.out.println( "This test can take up to some hours. The file size currently is about 50000." );
System.out.println( "Progress: " ); for ( int nAvailableBytes = nMinTestLen; nAvailableBytes < nMaxTestLen; nAvailableBytes++ )
{
Object oBStream = new BorderedStream( nAvailableBytes );
XStream xBorderedStream = (XStream)UnoRuntime.queryInterface( XStream.class, oBStream ); if ( xBorderedStream == null )
{
m_aTestHelper.Error( "Can't create bordered stream!" ); returnfalse;
}
// create storage based on the temporary stream
Object pArgs[] = new Object[2];
pArgs[0] = (Object) xBorderedStream;
pArgs[1] = Integer.valueOf( ElementModes.WRITE );
XTransactedObject xTransact = (XTransactedObject) UnoRuntime.queryInterface( XTransactedObject.class, xTempStorage ); if ( xTransact == null )
{
m_aTestHelper.Error( "This test is designed for storages in transacted mode!" ); returnfalse;
}
System.out.println( "" ); if ( !m_aTestHelper.disposeStorage( xTempStorage ) ) returnfalse;
// SUCCESS returntrue;
} catch( UseBackupException aExc )
{ // when there is not enough place in the target location and the target file is empty // the direct writing will fail and must throw this exception with empty URL if ( aExc.TemporaryFileURL.length() != 0 ) returnfalse;
} catch( Exception e )
{
System.out.println( "" );
m_aTestHelper.Error( "Unexpected exception: " + e + "\nnAvailableBytes = " + nAvailableBytes ); returnfalse;
}
}
returnfalse;
} catch( Exception e )
{
m_aTestHelper.Error( "Exception: " + e ); returnfalse;
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-09-29)
¤
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.