/openjdk7/jdk/src/share/classes/java/io/ |
H A D | ObjectInput.java | 77 * @param len the maximum number of bytes read 82 public int read(byte b[], int off, int len) throws IOException; argument
|
H A D | ObjectOutput.java | 71 * @param len the number of bytes that are written 74 public void write(byte b[], int off, int len) throws IOException; argument
|
H A D | PipedOutputStream.java | 126 * Writes <code>len</code> bytes from the specified byte array 133 * @param len the number of bytes to write. 138 public void write(byte b[], int off, int len) throws IOException { argument 143 } else if ((off < 0) || (off > b.length) || (len < 0) || 144 ((off + len) > b.length) || ((off + len) < 0)) { 146 } else if (len == 0) { 149 sink.receive(b, off, len);
|
H A D | PipedWriter.java | 128 * Writes <code>len</code> characters from the specified character array 138 * @param len the number of characters to write. 144 public void write(char cbuf[], int off, int len) throws IOException { argument 147 } else if ((off | len | (off + len) | (cbuf.length - (off + len))) < 0) { 150 sink.receive(cbuf, off, len);
|
H A D | SequenceInputStream.java | 175 * Reads up to <code>len</code> bytes of data from this input stream 176 * into an array of bytes. If <code>len</code> is not zero, the method 189 * @param len the maximum number of bytes read. 193 * <code>len</code> is negative, or <code>len</code> is greater than 197 public int read(byte b[], int off, int len) throws IOException { argument 202 } else if (off < 0 || len < 0 || len > b.length - off) { 204 } else if (len == 0) { 208 int n = in.read(b, off, len); [all...] |
H A D | StringBufferInputStream.java | 96 * Reads up to <code>len</code> bytes of data from this input stream 106 * @param len the maximum number of bytes read. 111 public synchronized int read(byte b[], int off, int len) { argument 114 } else if ((off < 0) || (off > b.length) || (len < 0) || 115 ((off + len) > b.length) || ((off + len) < 0)) { 121 if (pos + len > count) { 122 len = count - pos; 124 if (len <= 0) { 128 int cnt = len; [all...] |
/openjdk7/jdk/src/share/classes/java/security/ |
H A D | DigestInputStream.java | 134 * <code>len</code> bytes from the input stream into the array 147 * @param len the maximum number of bytes to be read from the input 151 * <code>len</code> if the end of the stream is reached prior to 152 * reading <code>len</code> bytes. -1 is returned if no bytes were 160 public int read(byte[] b, int off, int len) throws IOException { argument 161 int result = in.read(b, off, len);
|
H A D | DigestOutputStream.java | 137 * @param len the number of bytes of data to be updated and written 144 public void write(byte[] b, int off, int len) throws IOException { argument 146 digest.update(b, off, len); 148 out.write(b, off, len);
|
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/jdk/src/share/classes/java/util/zip/ |
H A D | Adler32.java | 62 public void update(byte[] b, int off, int len) { argument 66 if (off < 0 || len < 0 || off > b.length - len) { 69 adler = updateBytes(adler, b, off, len); 137 int len); 139 int off, int len); 136 updateBytes(int adler, byte[] b, int off, int len) argument 138 updateByteBuffer(int adler, long addr, int off, int len) argument
|
H A D | CRC32.java | 58 public void update(byte[] b, int off, int len) { argument 62 if (off < 0 || len < 0 || off > b.length - len) { 65 crc = updateBytes(crc, b, off, len); 92 private native static int updateBytes(int crc, byte[] b, int off, int len); argument
|
H A D | CheckedInputStream.java | 67 * Reads into an array of bytes. If <code>len</code> is not zero, the method 72 * @param len the maximum number of bytes read 77 * <code>len</code> is negative, or <code>len</code> is greater than 81 public int read(byte[] buf, int off, int len) throws IOException { argument 82 len = in.read(buf, off, len); 83 if (len != -1) { 84 cksum.update(buf, off, len); 86 return len; [all...] |
H A D | CheckedOutputStream.java | 69 * @param len the number of bytes to be written 72 public void write(byte[] b, int off, int len) throws IOException { argument 73 out.write(b, off, len); 74 cksum.update(b, off, len);
|
/openjdk7/jdk/src/share/classes/javax/crypto/ |
H A D | CipherOutputStream.java | 145 * Writes <code>len</code> bytes from the specified byte array 150 * @param len the number of bytes to write. 154 public void write(byte b[], int off, int len) throws IOException { argument 155 obuffer = cipher.update(b, off, len);
|
H A D | MacSpi.java | 80 * Processes the first <code>len</code> bytes in <code>input</code>, 85 * @param len the number of bytes to process. 87 protected abstract void engineUpdate(byte[] input, int offset, int len); argument 113 int len = input.remaining(); 114 byte[] b = new byte[CipherSpi.getTempArraySize(len)]; 115 while (len > 0) { 116 int chunk = Math.min(len, b.length); 119 len -= chunk;
|
/openjdk7/jdk/src/share/classes/javax/crypto/spec/ |
H A D | GCMParameterSpec.java | 100 * @param len the number of IV bytes 103 * {@code src} is null, {@code len} or {@code offset} is negative, 104 * or the sum of {@code offset} and {@code len} is greater than the 107 public GCMParameterSpec(int tLen, byte[] src, int offset, int len) { argument 108 init(tLen, src, offset, len); 114 private void init(int tLen, byte[] src, int offset, int len) { argument 122 if ((src == null) ||(len < 0) || (offset < 0) 123 || ((len + offset) > src.length)) { 127 iv = new byte[len]; 128 System.arraycopy(src, offset, iv, 0, len); [all...] |
H A D | SecretKeySpec.java | 104 * <code>len</code> bytes of <code>key</code>, starting at 109 * <code>key[offset+len-1]</code> inclusive. 121 * <code>len</code> bytes of the array beginning at 126 * @param len the length of the key material. 135 * i.e. <code>key.length-offset<len</code>. 137 * <code>offset</code> or <code>len</code> index bytes outside the 140 public SecretKeySpec(byte[] key, int offset, int len, String algorithm) { argument 147 if (key.length-offset < len) { 151 if (len < 0) { 152 throw new ArrayIndexOutOfBoundsException("len i [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/share/classes/com/sun/security/sasl/digest/ |
H A D | SecurityCtx.java | 47 byte[] wrap(byte[] dest, int start, int len) argument 55 byte[] unwrap(byte[] outgoing, int start, int len) argument
|
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/gui/ |
H A D | TypeScriptWriter.java | 48 public void write(char[] cbuf, int off, int len) throws IOException { argument 49 script.append(String.valueOf(cbuf, off, len));
|
/openjdk7/hotspot/src/os/windows/vm/ |
H A D | vmError_windows.cpp | 36 int len = (int)strlen(buf); local 37 char *p = &buf[len]; 39 jio_snprintf(p, buflen - len,
|
/openjdk7/hotspot/src/share/vm/ci/ |
H A D | ciArray.hpp | 46 ciArray(ciKlass* klass, int len) : ciObject(klass), _length(len) {} argument
|
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/ |
H A D | ISO10126Padding.java | 55 * @param len the number of padding bytes to add 60 public void padWithLen(byte[] in, int off, int len) argument 66 if ((off + len) > in.length) { 70 byte paddingOctet = (byte) (len & 0xff); 71 byte[] padding = new byte[len]; 73 padding[len-1] = paddingOctet; 74 System.arraycopy(padding, 0, in, off, len); 86 * @param len the length of the padded data 91 public int unpad(byte[] in, int off, int len) { argument 93 (len 119 padLength(int len) argument [all...] |
H A D | PKCS5Padding.java | 55 * @param len the number of padding bytes to add 60 public void padWithLen(byte[] in, int off, int len) argument 66 if ((off + len) > in.length) { 70 byte paddingOctet = (byte) (len & 0xff); 71 for (int i = 0; i < len; i++) { 85 * @param len the length of the padded data 90 public int unpad(byte[] in, int off, int len) { argument 92 (len == 0)) { // this can happen if input is really a padded buffer 96 byte lastByte = in[off + len - 1]; 103 int start = off + len 124 padLength(int len) argument [all...] |
H A D | Padding.java | 54 * @param len the number of padding bytes to add 59 void padWithLen(byte[] in, int off, int len) throws ShortBufferException; argument 69 * @param len the length of the data and their padding 74 int unpad(byte[] in, int off, int len); argument 79 * @param len the length of the data to pad 83 int padLength(int len); argument
|