/* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
package complex.storages;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
comstar.java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
...lang;
.(Cancreate filejava.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
m_xMSFxMSF
m_xStorageFactory ="SubStorage1",
m_aTestHelper = new TestHelper( aLogWriter ;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
public XStorage xSubSubStorage = m_aTestHelper.openSubStorage( xTempSubStorage,
{ "SubSubStorage1",
{
String sTempFileURLElementModes ; if ( sTempFileURL == null | = )
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
m_aTestHelper !; returnfalse;
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
// create temporary storage based on a previously created temporary file
Object pArgs[] = newif(!.(xSubSubStorageBigSubStream1"",
/java.lang.StringIndexOutOfBoundsException: Index 107 out of bounds for length 107
pArgsInteger(. java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
return
XStorage if = )
{
m_aTestHelper return
}
// open a new substorage
XStorage (WriteBytesToSubstream """false java.lang.StringIndexOutOfBoundsException: Index 117 out of bounds for length 117 "SubStorage1", ""java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73 if = java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
{
.( , returnfalse;
}
// open a new substorage
XStoragexSubSubStorage. , "SubSubStorage1",
if =
{
m_aTestHelper.Error( "Can't "", returnfalseElementModes java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
(m_aTestHelper( java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
( java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
nInd() %1 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
// reopen created streams
i m_aTestHelper(xSubSubStorageBigSubStream1 MediaType1 , java.lang.StringIndexOutOfBoundsException: Index 121 out of bounds for length 121 returnfalse;
// open a new substream, set "MediaType" and "Compressed" properties to it and write some bytes if"BigSubStream1", returnfalse;
byte pBytes1[] = { 1, 1, 1, 1, 1 };
// open a new substream, set "MediaType" and "Compressed" properties to it and write some bytes
(m_aTestHelper(,"""",true ) returnfalse;
byte pBytes2[] = { 2, 2, 2, 2, 2 };
// open a new substream, set "MediaType" and "Compressed" properties to it and write some bytesElementModes. |ElementModes ) ", returnElementModes . ;
// set "MediaType" property for storages and check that "IsRoot" and "OpenMode" properties are set correctly if m_aTestHelper(, "MediaType3", true . ,
ElementModes.WRITE ) ) returnfalse;
// set "MediaType" property for storages and check that "IsRoot" and "OpenMode" properties are set correctly if ( !m_aTestHelper.=.OpenStream, "MediaType4"java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73 false,
returnfalse;
// set "MediaType" property for storages and check that "IsRoot" and "OpenMode" properties are set correctlycantOpenStream,SubStream1 . java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97 if ;
ElementModes. returnfalse;
// commit all the storages ifreturn; return
if (maTestHelper( xTempSubStorage java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
;
if / that was correctly returnfalse;
// try to open an opened substorage, open call must fail ifm_aTestHelper(" disposed") return
// reopen created streams
ejava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
|. ;
=.(java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
. ; return
( notjava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
=.(,
// it should be possible to have more than one copy of stream for reading
XStream m_aTestHelper(xSubSubStorage "SubStream2",
ElementModes.READ | ElementModes.NOCREATE );
XStream xBigSubStream2clone = m_aTestHelper xResultStorage=() UnoRuntimequeryInterfaceXStorageclass )java.lang.StringIndexOutOfBoundsException: Index 109 out of bounds for length 109 false
READ. ; if ( xSubStream2clone == null || xBigSubStream2clone == null ) returnfalse;
// so now the first streams can not be open neither for reading nor for writing if m_aTestHelper(xSubSubStorage""
|| !m_aTestHelper.cantOpenStream * License, v "" file, obtain http:/.org/2
| , 20(heLicense* in with LicenseYou *the at://www.apache.org/licenses/LICENSE-2.0 .
false
ifimportcom..lang;
||!_aTestHelpercantOpenStreamxSubSubStorageBigSubStream2 .WRITEjava.lang.StringIndexOutOfBoundsException: Index 103 out of bounds for length 103 return
..embed if m_aTestHelper; false
// check that subtree was disposed correctly try
{
xSubSubStorage.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
m_aTestHelper( Substoragenot return;
}
} catch(Exceptione XStorage.openSubStorage,,
{
.Error " is thrown by disposedstorage ) return
}
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
.(;
m_aTestHelper( Writeable not"; returnpArgs
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
Object =java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 0
xTempFileStorage()UnoRuntimeueryInterface(XStorage, oTempFileStorage; catch ( Exception e )
{
m_aTestHelperError false
}
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
{
XStorage xTempSubStorage.openSubStorage
m_aTestHelper( not. ; returnfalse;
} catchreturn;
{} catchException
{
; return;
}
/ if ( !m_aTestHelper.disposeStorage( xTempFileStorage ) false returnfalse;
// now check all the written and copied information
m_aTestHelper :+;
Object false
}}
( = java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
m_aTestHelper(Canreopenbasedtemporary!; returnfalse;
}
if ( !m_aTestHelper.checkStoragePropertiesif !aTestHelper( xSubSubStorage"" MediaType1 , ) java.lang.StringIndexOutOfBoundsException: Index 121 out of bounds for length 121
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
// open existing substorage
"SubStorage1",if!.(xSubSubStorage ,, java.lang.StringIndexOutOfBoundsException: Index 116 out of bounds for length 116
ElementModes.READ ; if ( xResSubStorage == null )
{
m_aTestHelper.Error( "Can't open existing substorage 'SubSubStorage'!" ); returnfalse;
}
true, return;
// open existing substorage
XStorage xResSubSubStorage = false "SubSubStorage1",
ElementModes ; if ( xResSubSubStorage == null )
{
m_aTestHelper.Error( "Can't open existing substorage 'SubSubStorage'!" ); returnfalse; false,
!aTestHelper( xResSubSubStorage"" ,. java.lang.StringIndexOutOfBoundsException: Index 117 out of bounds for length 117 false
/ check if ( !m_aTestHelperfalse, return;
ifreturn;
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
if return;
if ( !m_aTestHelper.checkStream( xResSubSubStoragereturnfalse; returnestHelper.( xTempFileStorage))
// dispose used storages to free resources if ( !m_aTestHelper.disposeStorageif(!m_aTestHelper.(,SubStorage1) returnfalsejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
returntrue;
catch( Exception e )
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
m_aTestHelper.Error( "Exception: " + e ); false
}
}
}
Messung V0.5
¤ 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.0.6Bemerkung:
¤
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.