/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/dynamicany/ |
H A D | DynSequenceImpl.java | 71 int length; 81 length = input.read_long(); 82 components = new DynAny[length]; 83 anys = new Any[length]; 85 for (int i=0; i<length; i++) { 109 // Writing the length first is the only difference to supers implementation 110 out.write_long(components.length); 111 for (int i=0; i<components.length; i++) { 128 // Returns the current length of the sequence 133 return (checkInitComponents() ? components.length [all...] |
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | PipedInputStream.java | 211 if (in >= buffer.length) { 235 nextTransferAmount = buffer.length - in; 239 nextTransferAmount = buffer.length - in; 251 if (in >= buffer.length) { 333 if (out >= buffer.length) { 363 * <code>b.length - off</code> 371 } else if (off < 0 || len < 0 || len > b.length - off) { 389 available = Math.min((buffer.length - out), (in - out)); 391 available = buffer.length - out; 403 if (out >= buffer.length) { [all...] |
/openjdk7/jdk/src/share/classes/java/sql/ |
H A D | PreparedStatement.java | 311 * @param length the number of bytes in the stream 316 void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) argument 339 * @param length the number of bytes in the stream 348 int length) throws SQLException; 364 * @param length the number of bytes in the stream 370 int length) throws SQLException; 514 * @param length the number of characters in the stream 522 int length) throws SQLException; 796 * @param length the number of characters in the parameter data. 805 void setNCharacterStream(int parameterIndex, Reader value, long length) throw argument 347 setUnicodeStream(int parameterIndex, java.io.InputStream x, int length) argument 369 setBinaryStream(int parameterIndex, java.io.InputStream x, int length) argument 520 setCharacterStream(int parameterIndex, java.io.Reader reader, int length) argument 841 setClob(int parameterIndex, Reader reader, long length) argument 868 setBlob(int parameterIndex, InputStream inputStream, long length) argument 892 setNClob(int parameterIndex, Reader reader, long length) argument 993 setAsciiStream(int parameterIndex, java.io.InputStream x, long length) argument 1015 setBinaryStream(int parameterIndex, java.io.InputStream x, long length) argument 1039 setCharacterStream(int parameterIndex, java.io.Reader reader, long length) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | SoftJitterCorrector.java | 73 return buffers[buffpos % buffers.length]; 92 return buffers[buffpos % buffers.length]; 100 return buffers[writepos % buffers.length]; 107 if ((writepos - readpos) > buffers.length) { 109 newsize = Math.max(buffers.length * 2, newsize); 110 buffers = new byte[newsize][buffers[0].length]; 130 int bufflen = buffers[0].length; 185 while (n != buff.length) { 186 int s = stream.read(buff, n, buff.length 251 int bbuffer_len = bbuffer.length; [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/output/ |
H A D | Encoded.java | 49 if(buf==null || buf.length<size) 54 int length = text.length(); 56 ensureSize(length*3+1); // +1 for append 60 for (int i = 0; i < length; i++) { 96 int length = text.length(); 97 ensureSize(length*6+1); // in the worst case the text is like """""", so we need 6 bytes per char 101 for (int i = 0; i < length; i++) { 144 System.arraycopy(entity,0,buf,ptr,entity.length); [all...] |
/openjdk7/jdk/test/java/io/charStreams/ |
H A D | StringConvert.java | 63 int n = Math.min(s.length(), t.length()); 74 log.println("[" + i + "] " + s.length()); 94 /* String(byte[] bytes, int offset, int length) 104 int o = ig.next(s.length() - 1); 105 int n = ig.next(s.length() - o); 112 /* String(byte[] bytes, int offset, int length, String enc) 120 log.println("[" + i + "] " + s.length()); 123 byte[] b2 = new byte[b.length + o]; 124 System.arraycopy(b, 0, b2, o, b.length); [all...] |
/openjdk7/jdk/test/java/lang/String/ |
H A D | Encodings.java | 41 if (a.length != b.length) return false; 42 for (int i = 0; i < a.length; i++) 67 if (!(new String(bytes, 4, bytes.length - 4, charset).equals(end))) 75 if (!(new String(bytes, 2, bytes.length - 2, charset).equals(end))) 83 int n = str.length(); 115 if (bytes.length != bb.length) { 117 throw new RuntimeException("unequal length: " 118 + bytes.length [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/parser/ |
H A D | DocCommentScanner.java | 101 char[] newBuffer = new char[docCommentBuffer.length * 2]; 103 0, docCommentBuffer.length); 189 if (docCommentCount == docCommentBuffer.length) 225 buflen = buf.length; 325 if (docCommentCount == docCommentBuffer.length) 347 if (docCommentCount == docCommentBuffer.length) 353 if (docCommentCount == docCommentBuffer.length) 365 if (docCommentCount == docCommentBuffer.length) 375 if (docCommentCount == docCommentBuffer.length) 382 if (docCommentCount == docCommentBuffer.length) [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/ |
H A D | Name.java | 55 public int length() { method in class:Name 56 return toString().length(); 80 return table.fromUtf(bs, 0, bs.length); 92 return table.fromUtf(bs, 0, bs.length); 162 /** Get the length (in bytes) of this name. 204 return fromChars(cs, 0, cs.length); 211 return fromUtf(cs, 0, cs.length); 225 protected static int hashValue(byte bytes[], int offset, int length) { argument 229 for (int i = 0; i < length; i++) { 238 byte[] bytes2, int offset2, int length) { 237 equals(byte[] bytes1, int offset1, byte[] bytes2, int offset2, int length) argument [all...] |
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/iio/ |
H A D | InputStreamTests.java | 98 int length; // length of the entire stream (in bytes) field in class:InputStreamTests.Context 109 length = (scanlineStride * size) + 4; 199 final int length = ictx.length; 204 if (pos >= length) { 239 final int length = ictx.length; 244 if (pos + scanlineStride > length) { 279 final int length [all...] |
/openjdk7/jdk/test/java/util/concurrent/locks/ReentrantReadWriteLock/ |
H A D | MapLoops.java | 65 if (args.length > 0) { 75 if (args.length > 1) 78 if (args.length > 2) 81 if (args.length > 3) 84 if (args.length > 4) 95 for (int i = 0; i < key.length; ++i) 142 position = key.length / 2; 149 while (position >= key.length) position -= key.length; 150 while (position < 0) position += key.length; [all...] |
/openjdk7/jdk/test/java/util/zip/ |
H A D | InflaterBufferSize.java | 58 while (a.length < capacity) { 59 byte[] a2 = new byte[a.length * 2]; 60 System.arraycopy(a, 0, a2, 0, a.length); 66 private static byte[] trim(byte[] a, int length) { argument 67 byte[] res = new byte[length]; 68 System.arraycopy(a, 0, res, 0, length); 109 if (args.length > 0) { 114 if (args.length > 1) { 125 debug("Original data length: " + data.length [all...] |
H A D | FlaterCriticalArray.java | 51 private static void debug(String name, String inOut, long time, int length) { argument 53 debug(name + ": " + inOut + "d data length: " + length + " bytes"); 57 while (a.length < capacity) { 58 byte[] a2 = new byte[a.length * 2]; 59 System.arraycopy(a, 0, a2, 0, a.length); 65 private static byte[] trim(byte[] a, int length) { argument 66 byte[] res = new byte[length]; 67 System.arraycopy(a, 0, res, 0, length); 98 inform("Deflate", time1 - time0, deflated.length); 109 inform(String inOut, long duration, int length) argument [all...] |
/openjdk7/jdk/test/javax/management/MustBeValidMBeanInfo/ |
H A D | MustBeValidCommand.java | 112 new MBeanAttributeInfo[spec.length]; 113 for (int i=0;i<result.length;i++) { 126 new MBeanParameterInfo[spec.length]; 127 for (int i=0;i<result.length;i++) { 139 new MBeanOperationInfo[spec.length]; 141 for (int i=0;i<result.length;i++) { 154 new MBeanConstructorInfo[spec.length]; 156 for (int i=0;i<result.length;i++) { 168 new MBeanNotificationInfo[spec.length]; 170 for (int i=0;i<result.length; [all...] |
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/ |
H A D | UnixPath.java | 77 int n = input.length(); 103 StringBuilder sb = new StringBuilder(input.length()); 132 byte[] ba = new byte[(int)(ca.length * (double)ce.maxBytesPerChar())]; 151 // trim result to actual length if required 153 if (len != ba.length) 216 while (index < path.length) { 220 while (index < path.length && path[index] != '/') 230 while (index < path.length) { 236 while (index < path.length && path[index] != '/') 249 return path.length [all...] |
/openjdk7/langtools/test/tools/javap/ |
H A D | T6622260.java | 58 return new File(path.substring(0, path.length() - 5) + ".class"); 66 byte[] data = new byte[(int) f.length()]; 75 int constantPoolPos = data.length - in.available(); 78 int flagsPos = data.length - in.available(); 98 int classAttributesPos = data.length - in.available(); 118 out.write(data, classAttributesPos + 2, data.length - classAttributesPos - 2); 120 out.writeInt(newAttributeData.length); 131 int length = in.readUnsignedShort(); 132 in.skipBytes(length); // bytes 174 int length [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/util/ |
H A D | XML11Char.java | 294 final int length = name.length(); 295 if (length == 0) { 301 if (length > 1 && isXML11NameHighSurrogate(ch)) { 313 while (i < length) { 316 if (++i < length && isXML11NameHighSurrogate(ch)) { 344 final int length = ncName.length(); 345 if (length == 0) { 351 if (length > [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/text/html/ |
H A D | FrameSetView.java | 98 for (; i < items.length; i++) { 116 percentChildren = new int[children.length]; 117 relativeChildren = new int[children.length]; 118 absoluteChildren = new int[children.length]; 120 for (int i = 0; i < children.length; i++) { 126 if (children[i].length() > 1) { 129 0, children[i].length()-1)); 143 for (int i = 0; i < percentChildren.length; i++) { 183 int span[] = new int[children.length]; 226 for (int i = 0; i < span.length; [all...] |
/openjdk7/jdk/src/share/classes/sun/font/ |
H A D | BidiUtils.java | 52 * <code>start + getLength()</code> is greater than <code>levels.length</code>. 57 if (start < 0 || limit > levels.length) { 58 throw new IndexOutOfBoundsException("levels.length = " + levels.length + 95 int len = levels.length; 124 if (begin == levels.length) { 150 * is distinct and the values run from zero to the length of the array minus one). 160 int[] result = new int[values.length]; 161 for (int i = 0; i < values.length; i++) { 170 * Return an array containing contiguous values from 0 to length [all...] |
/openjdk7/jdk/src/share/classes/java/text/ |
H A D | ChoiceFormat.java | 72 * and an array of limits. The length of these arrays must be the same. 178 for (int i = 0; i < segments.length; ++i) { 188 for (int i = 0; i < newPattern.length(); ++i) { 192 if ((i+1)<newPattern.length() && newPattern.charAt(i+1)==ch) { 201 if (segments[0].length() == 0) { 226 if (count == newChoiceLimits.length) { 242 if (count == newChoiceLimits.length) { 261 for (int i = 0; i < choiceLimits.length; ++i) { 295 for (int j=0; j<text.length(); ++j) { 337 if (limits.length ! [all...] |
/openjdk7/jdk/src/share/classes/sun/tools/tree/ |
H A D | CompoundStatement.java | 50 for (int i = 0 ; i < args.length ; i++) { 62 Statement newargs[] = new Statement[1+args.length]; 64 for (int i = 0 ; i < args.length ; i++) { 75 if (args.length > 0) { 80 for (int i = 0 ; i < args.length ; i++) { 95 for (int i = 0 ; i < args.length ; i++) { 100 count += ((CompoundStatement)s).args.length; 114 for (int i = args.length ; i-- > 0 ;) { 121 if (expand || (count != args.length)) { 123 for (int i = args.length ; [all...] |
/openjdk7/jdk/src/share/classes/sun/io/ |
H A D | ByteToCharISO2022.java | 83 for(i = 0; i < remainByte.length; i++) 109 for(i = 0; i < tmp.length; i++) 139 for(i = 0; i < tmpConverter.length; i++) { 186 System.arraycopy(tmp, 0, remainByte, remainIndex+1, tmp.length); 187 remainIndex += tmp.length; 188 byteOff += tmp.length; 189 if(tmp.length<(maximumDesignatorLength-remainIndex)) 192 for (i = 0; i < SODesignator.length; i++) { 195 DesignatorLength = SODesignator[i].length(); 201 badInputLength = tmp.length; [all...] |
/openjdk7/jdk/test/java/util/Map/ |
H A D | Collisions.java | 141 boolean shortRun = args.length > 0 && args[0].equals("-shortrun"); 204 for (int i = 0; i < keys.length; i++) { 212 check(String.format("map expected size m%d != k%d", map.size(), keys.length), 213 map.size() == keys.length); 217 check(String.format("map expected size m%d != k%d", map.size(), keys.length), 218 map.size() == keys.length); 220 BitSet all = new BitSet(keys.length); 226 all.flip(0, keys.length); 234 all.flip(0, keys.length); 247 check(String.format("map expected size m%d != k%d", map.size(), keys.length), [all...] |
/openjdk7/jdk/src/share/classes/java/security/ |
H A D | CodeSource.java | 192 for (int i = 0; i < signers.length; i++) { 330 if (strict && signers.length != that.signers.length) { 333 for (int i = 0; i < signers.length; i++) { 335 for (int j = 0; j < that.signers.length; j++) { 347 if (strict && certs.length != that.certs.length) { 350 for (int i = 0; i < certs.length; i++) { 352 for (int j = 0; j < that.certs.length; j++) { 397 location.getFile().length() [all...] |
/openjdk7/jdk/src/share/classes/sun/security/rsa/ |
H A D | RSAPadding.java | 46 * where BT is the blocktype (1 or 2). The length of the entire string 49 * leaves up to (length of key in bytes) - 11 bytes for the data. 96 // OAEP: value of digest of data (user-supplied or zero-length) using md 175 int digestLen = lHash.length; 188 // cache of hashes of zero length data 195 * if <code>digestInput</code> is null or 0-length, zero length 202 if ((digestInput == null) || (digestInput.length == 0)) { 235 if (data.length > maxDataSize) { 264 if (padded.length ! [all...] |