Searched defs:newLength (Results 1 - 9 of 9) sorted by relevance

/openjdk7/jdk/src/share/native/java/io/
H A DRandomAccessFile.c145 jlong newLength)
156 if (IO_SetLength(fd, newLength) == -1) goto fail;
157 if (cur > newLength) {
144 Java_java_io_RandomAccessFile_setLength(JNIEnv *env, jobject this, jlong newLength) argument
/openjdk7/jdk/src/share/classes/java/lang/
H A DAbstractStringBuilder.java150 * index <i>k</i> less than <code>newLength</code>, the character at
156 * In other words, if the <code>newLength</code> argument is less than
159 * If the <code>newLength</code> argument is greater than or equal
162 * length becomes the <code>newLength</code> argument.
164 * The <code>newLength</code> argument must be greater than or equal
167 * @param newLength the new length
169 * <code>newLength</code> argument is negative.
171 public void setLength(int newLength) { argument
172 if (newLength < 0)
173 throw new StringIndexOutOfBoundsException(newLength);
[all...]
H A DStringBuffer.java169 public synchronized void setLength(int newLength) { argument
170 super.setLength(newLength);
/openjdk7/jdk/src/share/classes/java/util/
H A DArrays.java2211 * @param newLength the length of the copy to be returned
2214 * @throws NegativeArraySizeException if <tt>newLength</tt> is negative
2218 public static <T> T[] copyOf(T[] original, int newLength) { argument
2219 return (T[]) copyOf(original, newLength, original.getClass());
2233 * @param newLength the length of the copy to be returned
2237 * @throws NegativeArraySizeException if <tt>newLength</tt> is negative
2244 public static <T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType) { argument
2246 ? (T[]) new Object[newLength]
2247 : (T[]) Array.newInstance(newType.getComponentType(), newLength);
2249 Math.min(original.length, newLength));
2270 copyOf(byte[] original, int newLength) argument
2294 copyOf(short[] original, int newLength) argument
2318 copyOf(int[] original, int newLength) argument
2342 copyOf(long[] original, int newLength) argument
2366 copyOf(char[] original, int newLength) argument
2390 copyOf(float[] original, int newLength) argument
2414 copyOf(double[] original, int newLength) argument
2438 copyOf(boolean[] original, int newLength) argument
[all...]
/openjdk7/jdk/src/share/native/sun/font/layout/
H A DLETableReference.h182 size_t contractLength(size_t newLength) { argument
183 if(fLength!=LE_UINTPTR_MAX&&newLength>0&&newLength<=fLength) {
184 fLength = newLength;
/openjdk7/jdk/src/share/npt/
H A Dutf.c141 int newLength; local
144 newLength = 0;
150 newLength++;
152 newLength++; /* We gain one byte in length on NULL bytes */
160 newLength += 2;
168 newLength += 3;
177 newLength += 6; /* 4byte encoding turns into 2 3byte ones */
187 return newLength;
197 utf8sToUtf8m(struct UtfInst *ui, jbyte *string, int length, jbyte *newString, int newLength) argument
249 UTF_ASSERT(j==newLength);
263 int newLength; local
328 utf8mToUtf8s(struct UtfInst *ui, jbyte *string, int length, jbyte *newString, int newLength) argument
[all...]
/openjdk7/jdk/src/share/classes/java/io/
H A DRandomAccessFile.java592 * <code>length</code> method is greater than the <code>newLength</code>
595 * than <code>newLength</code> then after this method returns the offset
596 * will be equal to <code>newLength</code>.
599 * <code>length</code> method is smaller than the <code>newLength</code>
603 * @param newLength The desired length of the file
607 public native void setLength(long newLength) throws IOException; argument
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/xs/
H A DXMLSchemaLoader.java931 public void resize(int oldLength , int newLength){ argument
932 String [] temp = new String[newLength] ;
933 System.arraycopy(locations, 0, temp, 0, Math.min(oldLength, newLength));
935 length = Math.min(oldLength, newLength);
/openjdk7/jdk/src/share/demo/jvmti/heapTracker/
H A DheapTracker.c788 long newLength; local
803 newLength = 0;
818 &newLength,
825 if ( newLength > 0 ) {
828 jvmti_space = (unsigned char *)allocate(jvmti, (jint)newLength);
829 (void)memcpy((void*)jvmti_space, (void*)newImage, (int)newLength);
830 *new_class_data_len = (jint)newLength;

Completed in 77 milliseconds