/openjdk7/jdk/src/share/classes/java/io/ |
H A D | CharArrayReader.java | 114 * @param len Maximum number of characters to read 120 public int read(char b[], int off, int len) throws IOException { argument 123 if ((off < 0) || (off > b.length) || (len < 0) || 124 ((off + len) > b.length) || ((off + len) < 0)) { 126 } else if (len == 0) { 133 if (pos + len > count) { 134 len = count - pos; 136 if (len <= 0) { 139 System.arraycopy(buf, pos, b, off, len); [all...] |
H A D | StringWriter.java | 85 * @param len Number of characters to write 87 public void write(char cbuf[], int off, int len) { argument 88 if ((off < 0) || (off > cbuf.length) || (len < 0) || 89 ((off + len) > cbuf.length) || ((off + len) < 0)) { 91 } else if (len == 0) { 94 buf.append(cbuf, off, len); 109 * @param len Number of characters to write 111 public void write(String str, int off, int len) { argument 112 buf.append(str.substring(off, off + len)); [all...] |
H A D | FilterOutputStream.java | 101 * Writes <code>len</code> bytes from the specified 116 * @param len the number of bytes to write. 120 public void write(byte b[], int off, int len) throws IOException { argument 121 if ((off | len | (b.length - (len + off)) | (off + len)) < 0) 124 for (int i = 0 ; i < len ; i++) {
|
/openjdk7/jdk/src/share/classes/java/util/zip/ |
H A D | GZIPOutputStream.java | 140 * @param len the length of the data 143 public synchronized void write(byte[] buf, int off, int len) argument 146 super.write(buf, off, len); 147 crc.update(buf, off, len); 160 int len = def.deflate(buf, 0, buf.length); 161 if (def.finished() && len <= buf.length - TRAILER_SIZE) { 163 writeTrailer(buf, len); 164 len = len + TRAILER_SIZE; 165 out.write(buf, 0, len); [all...] |
H A D | ZipInputStream.java | 165 * If <code>len</code> is not zero, the method 170 * @param len the maximum number of bytes read 175 * <code>len</code> is negative, or <code>len</code> is greater than 180 public int read(byte[] b, int off, int len) throws IOException { argument 182 if (off < 0 || len < 0 || off > b.length - len) { 184 } else if (len == 0) { 193 len = super.read(b, off, len); 422 readFully(byte[] b, int off, int len) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/imageio/stream/ |
H A D | MemoryCacheImageInputStream.java | 93 public int read(byte[] b, int off, int len) throws IOException { argument 99 if (off < 0 || len < 0 || off + len > b.length || off + len < 0) { 101 ("off < 0 || len < 0 || off+len > b.length || off+len < 0!"); 106 if (len == 0) { 110 long pos = cache.loadFromStream(stream, streamPos+len); 112 len [all...] |
H A D | ImageOutputStreamImpl.java | 54 public abstract void write(byte b[], int off, int len) throws IOException; argument 131 int len = s.length(); 132 for (int i = 0 ; i < len ; i++) { 138 int len = s.length(); 140 byte[] b = new byte[len*2]; 143 for (int i = 0; i < len ; i++) { 149 for (int i = 0; i < len ; i++) { 156 write(b, 0, len*2); 201 public void writeShorts(short[] s, int off, int len) throws IOException { argument 202 // Fix 4430357 - if off + len < 227 writeChars(char[] c, int off, int len) argument 253 writeInts(int[] i, int off, int len) argument 283 writeLongs(long[] l, int off, int len) argument 321 writeFloats(float[] f, int off, int len) argument 351 writeDoubles(double[] d, int off, int len) argument [all...] |
/openjdk7/jdk/test/sun/misc/ |
H A D | CopyMemory.java | 47 private static void set(byte[] b, int ofs, int len, int value) { argument 48 for (int i = 0; i < len; i++) { 53 private static void check(byte[] b, int ofs, int len, int value) { argument 54 for (int i = 0; i < len; i++) { 62 private static void set(Unsafe unsafe, long addr, int ofs, int len, int value) { argument 63 for (int i = 0; i < len; i++) { 68 private static void check(Unsafe unsafe, long addr, int ofs, int len, int value) { argument 69 for (int i = 0; i < len; i++) { 94 int len = random.nextInt(BUFFER_SIZE / 2); 96 unsafe.setMemory(b, Unsafe.ARRAY_BYTE_BASE_OFFSET + ofs, len, (byt [all...] |
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/io/ |
H A D | OptionalDataException.java | 51 OptionalDataException(int len) { argument 53 length = len;
|
/openjdk7/jdk/src/share/classes/javax/security/sasl/ |
H A D | SaslClient.java | 158 * <tt>offset</tt> and <tt>len</tt> specify the portion of <tt>incoming</tt> 164 * @param len The number of bytes from <tt>incoming</tt> to use. 172 public abstract byte[] unwrap(byte[] incoming, int offset, int len) argument 186 * <tt>offset</tt> and <tt>len</tt> specify the portion of <tt>outgoing</tt> 191 * @param len The number of bytes from <tt>outgoing</tt> to use. 199 public abstract byte[] wrap(byte[] outgoing, int offset, int len) argument
|
H A D | SaslServer.java | 151 * <tt>offset</tt> and <tt>len</tt> specify the portion of <tt>incoming</tt> 157 * @param len The number of bytes from <tt>incoming</tt> to use. 165 public abstract byte[] unwrap(byte[] incoming, int offset, int len) argument 178 * <tt>offset</tt> and <tt>len</tt> specify the portion of <tt>outgoing</tt> 183 * @param len The number of bytes from <tt>outgoing</tt> to use. 191 public abstract byte[] wrap(byte[] outgoing, int offset, int len) argument
|
/openjdk7/jdk/src/share/classes/javax/swing/text/html/ |
H A D | BRView.java | 50 public int getBreakWeight(int axis, float pos, float len) { argument 54 return super.getBreakWeight(axis, pos, len);
|
/openjdk7/jdk/src/share/classes/java/security/ |
H A D | MessageDigestSpi.java | 90 * @param len the number of bytes to use, starting at 93 protected abstract void engineUpdate(byte[] input, int offset, int len); argument 117 int len = input.remaining(); 118 int n = JCAUtil.getTempArraySize(len); 122 while (len > 0) { 123 int chunk = Math.min(len, tempArray.length); 126 len -= chunk; 159 * @param len number of bytes within buf allotted for the digest. 173 protected int engineDigest(byte[] buf, int offset, int len) argument 177 if (len < diges [all...] |
/openjdk7/hotspot/src/share/vm/ci/ |
H A D | ciObjArray.hpp | 42 ciObjArray(ciKlass* klass, int len) : ciArray(klass, len) {} argument
|
H A D | ciTypeArray.hpp | 42 ciTypeArray(ciKlass* klass, int len) : ciArray(klass, len) {} argument
|
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | AppOutputStream.java | 59 synchronized public void write(byte b[], int off, int len) argument 63 } else if (off < 0 || len < 0 || len > b.length - off) { 65 } else if (len == 0) { 105 if ((len != 1) && (howmuch == 1)) { 109 howmuch = Math.min(len, r.availableDataBytes()); 120 len -= howmuch; 124 } while (len > 0);
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/mimepull/ |
H A D | MIMEParser.java | 84 private int len; field in class:MIMEParser 196 int start = match(buf, 0, len); // matches boundary 199 assert eof || len >= config.chunkSize; 200 int chunkSize = eof ? len : config.chunkSize; 208 return adjustBuf(chunkSize, len-chunkSize); 221 return adjustBuf(start+1, len-start-1); // boundary is not at beginning of a line 224 if (start+bl+1 < len && buf[start+bl] == '-' && buf[start+bl+1] == '-') { 232 for(int i=start+bl; i < len && (buf[i] == ' ' || buf[i] == '\t'); i++) { 237 if (start+bl+lwsp < len && buf[start+bl+lwsp] == '\n') { 239 return adjustBuf(chunkLen, len 394 match(byte[] mybuf, int off, int len) argument [all...] |
/openjdk7/jdk/src/share/classes/java/awt/image/ |
H A D | Kernel.java | 71 int len = width*height; 72 if (data.length < len) { 75 " and should be "+len); 77 this.data = new float[len]; 78 System.arraycopy(data, 0, this.data, 0, len);
|
/openjdk7/jdk/test/demo/jvmti/hprof/ |
H A D | DefineClass.java | 37 int len = 0; 50 nbytes = fis.read(b, len, b.length-len); 52 len += nbytes; 61 n = defineClass(null, b, 0, len);
|
/openjdk7/jdk/test/java/io/BufferedInputStream/ |
H A D | CountUpdate.java | 89 public int read(byte b[], int off, int len) throws IOException { argument 91 if (len > buffer.length) len = buffer.length; 92 System.arraycopy(buffer, 0, b, off, len); 93 return len;
|
H A D | SkipTest.java | 91 public int read(byte b[], int off, int len) throws IOException { argument 92 if (len > buffer.length) len = buffer.length; 93 System.arraycopy(buffer, aposition, b, off, len); 94 return len;
|
/openjdk7/jdk/test/java/nio/charset/coders/ |
H A D | FullRead.java | 39 static void test(File f, int len) throws Exception { argument 41 for (int i = 0; i < len; i++) 49 System.out.println(len + " : " + n); 50 if (len != n) 51 throw new Exception("Expected " + len + ", read " + n);
|
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/utils/ |
H A D | Trie.java | 63 final int len = key.length(); 64 if (len > m_charBuffer.length) 67 m_charBuffer = new char[len]; 72 for (int i = 0; i < len; i++) 82 for (; i < len; i++) 111 final int len = key.length(); 116 if (m_charBuffer.length < len) 120 switch (len) // optimize the look up based on the number of chars 164 key.getChars(0, len, m_charBuffer, 0); 166 for (int i = 0; i < len; [all...] |
/openjdk7/hotspot/src/share/vm/oops/ |
H A D | objArrayKlass.inline.hpp | 45 const size_t len = size_t(a->length()); local 47 assert(beg_index < len || len == 0, "index too large"); 49 const size_t stride = MIN2(len - beg_index, ObjArrayMarkingStride); 60 if (end_index < len) { 79 const size_t len = size_t(a->length()); local 81 assert(beg_index < len || len == 0, "index too large"); 83 const size_t stride = MIN2(len - beg_index, ObjArrayMarkingStride); 94 if (end_index < len) { [all...] |
/openjdk7/jdk/src/solaris/native/sun/net/sdp/ |
H A D | SdpSupport.c | 103 socklen_t len; local 108 len = sizeof(arg); 109 if (getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, &len) == 0) 110 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, len); 111 len = sizeof(arg); 112 if (getsockopt(fd, SOL_SOCKET, SO_OOBINLINE, (char*)&arg, &len) == 0) 113 setsockopt(s, SOL_SOCKET, SO_OOBINLINE, (char*)&arg, len); 114 len = sizeof(linger); 115 if (getsockopt(fd, SOL_SOCKET, SO_LINGER, (void*)&linger, &len) == 0) 116 setsockopt(s, SOL_SOCKET, SO_LINGER, (char*)&linger, len); [all...] |