src/share/jaxws_classes/com/sun/xml/internal/stream/buffer/AbstractCreator.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
1 /* 1 /*
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
129 } 129 }
130 resizeContentCharacters(); 130 resizeContentCharacters();
131 } 131 }
132 132
133 if (length < CHAR_ARRAY_LENGTH_SMALL_SIZE) { 133 if (length < CHAR_ARRAY_LENGTH_SMALL_SIZE) {
134 storeStructure(type | CHAR_ARRAY_LENGTH_SMALL); 134 storeStructure(type);
135 storeStructure(length); 135 storeStructure(length);
136 System.arraycopy(ch, start, _contentCharactersBuffer, _contentCharactersBufferPtr, length); 136 System.arraycopy(ch, start, _contentCharactersBuffer, _contentCharactersBufferPtr, length);
137 _contentCharactersBufferPtr += length; 137 _contentCharactersBufferPtr += length;
138 } else if (length < CHAR_ARRAY_LENGTH_MEDIUM_SIZE) { 138 } else if (length < CHAR_ARRAY_LENGTH_MEDIUM_SIZE) {
139 storeStructure(type | CHAR_ARRAY_LENGTH_MEDIUM); 139 storeStructure(type | CHAR_ARRAY_LENGTH_MEDIUM);

mercurial