/openjdk7/jdk/src/share/classes/javax/naming/ldap/ |
H A D | Rfc2253Parser.java | 40 private final int len; // length of "chars" field in class:Rfc2253Parser 48 len = name.length(); 61 // new ArrayList<Rdn>(len / 3 + 10); // leave room for growth 64 new ArrayList(len / 3 + 10); // leave room for growth 66 if (len == 0) { 71 while (cur < len) { 94 if (cur < len) { 106 while (cur < len) { 110 if (cur >= len || chars[cur] != '=') { 119 if (cur >= len || char [all...] |
/openjdk7/jdk/src/share/native/java/io/ |
H A D | io_util.c | 67 outOfBounds(JNIEnv *env, jint off, jint len, jbyteArray array) { argument 69 (len < 0) || 72 ((*env)->GetArrayLength(env, array) - off < len)); 77 jint off, jint len, jfieldID fid) 89 if (outOfBounds(env, off, len, bytes)) { 94 if (len == 0) { 96 } else if (len > BUF_SIZE) { 97 buf = malloc(len); 111 nread = (jint)IO_Read(fd, buf, len); 153 jint off, jint len, jboolea 76 readBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, jint len, jfieldID fid) argument 152 writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, jint len, jboolean append, jfieldID fid) argument [all...] |
/openjdk7/jdk/src/share/demo/jvmti/agent_util/ |
H A D | agent_util.c | 80 int len; local 90 len = (int)strcspn(str, seps); 91 if ( len >= max ) { 94 (void)strncpy(buf, str, len); 95 buf[len] = 0; 96 return str+len; 110 int len; local 112 len = (int)strlen(item); 114 if ( strncmp(mname, item+1, len-1)==0 ) { 117 } else if ( item[len 228 allocate(jvmtiEnv *jvmti, jint len) argument [all...] |
/openjdk7/jdk/src/share/classes/java/util/zip/ |
H A D | DeflaterInputStream.java | 151 int len = read(rbuf, 0, 1); 152 if (len <= 0) 163 * @param len maximum number of compressed bytes to read into {@code b} 166 * @throws IndexOutOfBoundsException if {@code len} > {@code b.length - 171 public int read(byte[] b, int off, int len) throws IOException { argument 176 } else if (off < 0 || len < 0 || len > b.length - off) { 178 } else if (len == 0) { 184 while (len > 0 && !def.finished()) { 199 n = def.deflate(b, off, len); [all...] |
H A D | DeflaterOutputStream.java | 196 * @param len the length of the data 199 public void write(byte[] b, int off, int len) throws IOException { argument 203 if ((off | len | (off + len) | (b.length - (off + len))) < 0) { 205 } else if (len == 0) { 209 def.setInput(b, off, len); 251 int len = def.deflate(buf, 0, buf.length); 252 if (len > 0) { 253 out.write(buf, 0, len); [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/ |
H A D | WhiteSpaceProcessor.java | 39 // final int len = text.length(); 40 // StringBuffer result = new StringBuffer(len); 42 // for (int i = 0; i < len; i++) { 88 int len = text.length(); 91 while( start<len && isWhiteSpace(text.charAt(start)) ) 94 int end = len-1; 99 if(start==0 && end==len-1) 115 int len = text.length(); 121 while(s<len) { 126 if(s==len) [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/javax/xml/bind/ |
H A D | WhiteSpaceProcessor.java | 39 // final int len = text.length(); 40 // StringBuffer result = new StringBuffer(len); 42 // for (int i = 0; i < len; i++) { 88 int len = text.length(); 91 while( start<len && isWhiteSpace(text.charAt(start)) ) 94 int end = len-1; 99 if(start==0 && end==len-1) 115 int len = text.length(); 121 while(s<len) { 126 if(s==len) [all...] |
/openjdk7/hotspot/src/share/vm/classfile/ |
H A D | javaAssertions.cpp | 60 int len = (int)strlen(name); local 61 char *name_copy = NEW_C_HEAP_ARRAY(char, len + 1, mtClass); 67 if (len >= 3 && strcmp(name_copy + len - 3, "...") == 0) { 69 len -= 3; 70 name_copy[len] = '\0'; 79 for (int i = 0; i < len; ++i) { 102 int len; local 104 len = OptionList::count(_packages); 105 objArrayOop pn = oopFactory::new_objArray(SystemDictionary::String_klass(), len, CHECK_NUL 126 fillJavaArrays(const OptionList* p, int len, objArrayHandle names, typeArrayHandle enabled, TRAPS) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/imageio/stream/ |
H A D | ImageInputStreamImpl.java | 159 * Reads up to <code>len</code> bytes from the stream, and stores 173 * @param len the maximum number of bytes to read. 179 * negative, <code>len</code> is negative, or <code>off + 180 * len</code> is greater than <code>b.length</code>. 185 public abstract int read(byte[] b, int off, int len) throws IOException; argument 187 public void readBytes(IIOByteBuffer buf, int len) throws IOException { argument 188 if (len < 0) { 189 throw new IndexOutOfBoundsException("len < 0!"); 195 byte[] data = new byte[len]; 196 len 343 readFully(byte[] b, int off, int len) argument 364 readFully(short[] s, int off, int len) argument 380 readFully(char[] c, int off, int len) argument 396 readFully(int[] i, int off, int len) argument 412 readFully(long[] l, int off, int len) argument 428 readFully(float[] f, int off, int len) argument 444 readFully(double[] d, int off, int len) argument 460 toShorts(byte[] b, short[] s, int off, int len) argument 479 toChars(byte[] b, char[] c, int off, int len) argument 498 toInts(byte[] b, int[] i, int off, int len) argument 521 toLongs(byte[] b, long[] l, int off, int len) argument 560 toFloats(byte[] b, float[] f, int off, int len) argument 585 toDoubles(byte[] b, double[] d, int off, int len) argument [all...] |
H A D | ImageOutputStream.java | 94 * position. If <code>len</code> is 0, nothing is written. 108 * @param len the number of <code>byte</code>s to write. 111 * negative, <code>len</code> is negative, or <code>off + 112 * len</code> is greater than <code>b.length</code>. 117 void write(byte b[], int off, int len) throws IOException; argument 441 * position. If <code>len</code> is 0, nothing is written. 454 * @param len the number of <code>short</code>s to write. 457 * negative, <code>len</code> is negative, or <code>off + 458 * len</code> is greater than <code>s.length</code>. 463 void writeShorts(short[] s, int off, int len) throw argument 489 writeChars(char[] c, int off, int len) argument 515 writeInts(int[] i, int off, int len) argument 541 writeLongs(long[] l, int off, int len) argument 567 writeFloats(float[] f, int off, int len) argument 593 writeDoubles(double[] d, int off, int len) argument [all...] |
H A D | ImageInputStream.java | 129 * Reads up to <code>len</code> bytes from the stream, and stores 140 * @param len the maximum number of <code>byte</code>s to read. 148 * negative, <code>len</code> is negative, or <code>off + 149 * len</code> is greater than <code>b.length</code>. 152 int read(byte[] b, int off, int len) throws IOException; argument 155 * Reads up to <code>len</code> bytes from the stream, and 165 * @param len the maximum number of <code>byte</code>s to read. 167 * @exception IndexOutOfBoundsException if <code>len</code> is 174 void readBytes(IIOByteBuffer buf, int len) throws IOException; argument 500 * Reads <code>len</cod 521 readFully(byte[] b, int off, int len) argument 565 readFully(short[] s, int off, int len) argument 590 readFully(char[] c, int off, int len) argument 615 readFully(int[] i, int off, int len) argument 640 readFully(long[] l, int off, int len) argument 665 readFully(float[] f, int off, int len) argument 690 readFully(double[] d, int off, int len) argument [all...] |
H A D | MemoryCache.java | 96 long len = pos - length; 101 while (len > 0) { 112 int nbytes = (int)Math.min(len, (long)left); 122 len -= nbytes; 145 * <code>len</code> is < 0. 147 public void writeToStream(OutputStream stream, long pos, long len) argument 149 if (pos + len > length) { 152 if ((pos < 0) || (len < 0)) { 153 throw new IndexOutOfBoundsException("Negative pos or len"); 155 if (len 209 write(byte[] b, int off, int len, long pos) argument 308 read(byte[] b, int off, int len, long pos) argument [all...] |
/openjdk7/jdk/src/share/classes/java/lang/ |
H A D | ThreadLocal.java | 305 private void setThreshold(int len) { argument 306 threshold = len * 2 / 3; 310 * Increment i modulo len. 312 private static int nextIndex(int i, int len) { argument 313 return ((i + 1 < len) ? i + 1 : 0); 317 * Decrement i modulo len. 319 private static int prevIndex(int i, int len) { argument 320 return ((i - 1 >= 0) ? i - 1 : len - 1); 344 int len = parentTable.length; 345 setThreshold(len); [all...] |
/openjdk7/jdk/src/share/classes/javax/sql/rowset/serial/ |
H A D | SerialBlob.java | 75 private long len; field in class:SerialBlob 100 len = b.length; 101 buf = new byte[(int)len]; 102 for(int i = 0; i < len; i++) { 105 origLen = len; 135 len = blob.length(); 136 buf = blob.getBytes(1, (int)len ); 139 //if ( len < 10240000) 140 // len = 10240000; 141 origLen = len; [all...] |
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/ |
H A D | BerDecoder.java | 113 int len = parseLength(); 115 rlen[0] = len; 194 int len = parseLength(); 196 if (len > 4) { 198 } else if (len > bufsize - offset) { 206 for( int i = 1 /* first byte already read */ ; i < len; i++) { 248 int len = parseLength(); 250 if (len > bufsize - offset) { 255 if (len == 0) { 258 byte[] buf2 = new byte[len]; [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/util/ |
H A D | ReadAllStream.java | 88 int len = memStream.read(b, off, sz); 89 if (len == -1) { 90 len = fileStream.read(b, off, sz); 92 return len; 113 int len; 114 while((len=in.read(buf)) != -1) { 115 fileOut.write(buf, 0, len); 148 private void add(byte[] buf, int len) { argument 150 tail = tail.createNext(buf, 0, len); 152 head = tail = new Chunk(buf, 0, len); 226 final int len; field in class:ReadAllStream.MemoryStream.Chunk 228 Chunk(byte[] buf, int off, int len) argument 234 createNext(byte[] buf, int off, int len) argument [all...] |
/openjdk7/jdk/src/windows/classes/sun/nio/ch/ |
H A D | FileDispatcherImpl.java | 57 int read(FileDescriptor fd, long address, int len) argument 60 return read0(fd, address, len); 63 int pread(FileDescriptor fd, long address, int len, long position) argument 66 return pread0(fd, address, len, position); 69 long readv(FileDescriptor fd, long address, int len) throws IOException { argument 70 return readv0(fd, address, len); 73 int write(FileDescriptor fd, long address, int len) throws IOException { argument 74 return write0(fd, address, len, append); 77 int pwrite(FileDescriptor fd, long address, int len, long position) argument 80 return pwrite0(fd, address, len, positio 83 writev(FileDescriptor fd, long address, int len) argument 125 read0(FileDescriptor fd, long address, int len) argument 128 pread0(FileDescriptor fd, long address, int len, long position) argument 131 readv0(FileDescriptor fd, long address, int len) argument 134 write0(FileDescriptor fd, long address, int len, boolean append) argument 137 pwrite0(FileDescriptor fd, long address, int len, long position) argument 140 writev0(FileDescriptor fd, long address, int len, boolean append) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | ModelByteBuffer.java | 48 private final long len; field in class:ModelByteBuffer 98 public int read(byte b[], int off, int len) throws IOException { argument 99 if (len > left) 100 len = (int)left; 103 len = raf.read(b, off, len); 104 if (len == -1) 106 left -= len; 107 return len; 111 int len 173 ModelByteBuffer(byte[] buffer, int offset, int len) argument 185 ModelByteBuffer(File file, long offset, long len) argument [all...] |
/openjdk7/hotspot/src/share/vm/runtime/ |
H A D | fieldType.cpp | 51 int len = sig->utf8_length(); local 53 while(i < len - 1 && sig->byte_at(i) == '[') i++; 66 return (i + 1 == len); 69 return sig->byte_at(len - 1) == ';'; 90 int len = (int)strlen(element); local 91 assert(element[len-1] == ';', "last char should be a semicolon"); 92 element[len-1] = '\0'; // chop off semicolon
|
/openjdk7/jdk/src/share/native/java/util/zip/zlib-1.2.3/ |
H A D | inftrees.c | 64 unsigned len; /* a code's length in bits */ local 131 for (len = 0; len <= MAXBITS; len++) 132 count[len] = 0; 156 for (len = 1; len <= MAXBITS; len++) { 158 left -= count[len]; 166 for (len [all...] |
H A D | zcrc32.c | 243 uLong ZEXPORT crc32(crc, buf, len) 246 unsigned len; 261 return (uLong)crc32_little(crc, buf, len); 263 return (uLong)crc32_big(crc, buf, len); 267 while (len >= 8) { 269 len -= 8; 271 if (len) do { 273 } while (--len); 286 local unsigned long crc32_little(crc, buf, len) 289 unsigned len; [all...] |
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | AppInputStream.java | 77 * Read up to "len" bytes into this buffer, starting at "off". 82 public synchronized int read(byte b[], int off, int len) argument 86 } else if (off < 0 || len < 0 || len > b.length - off) { 88 } else if (len == 0) { 108 int howmany = Math.min(len, r.available()); 130 int len = (int)Math.min(n, SKIP_ARRAY.length); 131 int r = read(SKIP_ARRAY, 0, len);
|
/openjdk7/jdk/src/share/classes/java/net/ |
H A D | SocketOutputStream.java | 86 * @param len the number of bytes that are written 90 int len) throws IOException; 97 * @param len the number of bytes that are written 100 private void socketWrite(byte b[], int off, int len) throws IOException { argument 102 if (len <= 0 || off < 0 || off + len > b.length) { 103 if (len == 0) { 113 socketWrite0(fd, b, off, len); 114 bytesWritten = len; 152 * offset <i>len</ 89 socketWrite0(FileDescriptor fd, byte[] b, int off, int len) argument 158 write(byte b[], int off, int len) argument [all...] |
/openjdk7/jdk/src/share/classes/java/nio/charset/ |
H A D | CoderResult.java | 199 protected abstract CoderResult create(int len); argument 201 private synchronized CoderResult get(int len) { argument 202 if (len <= 0) 204 Integer k = new Integer(len); 213 e = create(len); 223 public CoderResult create(int len) { 224 return new CoderResult(CR_MALFORMED, len); 239 public CoderResult create(int len) { 240 return new CoderResult(CR_UNMAPPABLE, len);
|
/openjdk7/jdk/src/share/classes/sun/rmi/transport/tcp/ |
H A D | MultiplexOutputStream.java | 106 * @param len number of bytes to write 108 public synchronized void write(byte b[], int off, int len) argument 111 if (len <= 0) 116 if (len <= freeSpace) { 117 System.arraycopy(b, off, buffer, pos, len); 118 pos += len; 137 if (local_requested < len) { 140 len -= local_requested; 146 manager.sendTransmit(info, b, off, len); 148 requested -= len; [all...] |