/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/ |
H A D | InputLexer.java | 113 public void readBytes(byte[] buf, int off, int len) throws IOException { argument 122 while (numRead < len) { 123 numRead += in.read(buf, startIdx + numRead, len - numRead); 125 // if (numRead != len) { 127 // len + " bytes requested"); 150 public String readByteString(int len) throws IOException { argument 151 byte[] b = new byte[len]; 152 for (int i = 0; i < len; i++) { 164 public String readCharString(int len) throws IOException { argument 165 char[] c = new char[len]; [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/message/ |
H A D | ByteArrayAttachment.java | 53 private final int len; field in class:ByteArrayAttachment 56 public ByteArrayAttachment(@NotNull String contentId, byte[] data, int start, int len, String mimeType) { argument 60 this.len = len; 77 if(start!=0 || len!=data.length) { 79 byte[] exact = new byte[len]; 80 System.arraycopy(data,start,exact,0,len); 88 return new DataSourceStreamingDataHandler(new ByteArrayDataSource(data,start,len,getContentType())); 96 return new ByteArrayInputStream(data,start,len);
|
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/AES/ |
H A D | TestKATForECB_VK.java | 645 * @param len key size in bytes, i.e. 16, 24, or 32 646 * @param rounds round number starting from 0, i.e. valid from 0 to len-1. 648 private static SecretKey constructAESKey(int len, int rounds) argument 650 if ((len != 16) && (len != 24) && (len != 32)) { 651 throw new IllegalArgumentException("Wrong Key Length: " + len); 653 byte[] rawKeyValue = constructKeyValue(len, rounds); 700 int len = s.length()/2; 701 byte[] tempValue = new byte[len]; [all...] |
H A D | TestKATForECB_VT.java | 449 * @param len key size in bytes, i.e. 16, 24, or 32 451 private static SecretKey constructAESKey(int len) argument 453 if ((len != 16) && (len != 24) && (len != 32)) { 454 throw new IllegalArgumentException("Wrong Key Length: " + len); 456 byte[] keyval = new byte[len]; 506 int len = s.length()/2; 507 byte[] tempValue = new byte[len]; 508 for (int i = 0; i < len; [all...] |
/openjdk7/jdk/src/share/classes/sun/security/jgss/ |
H A D | GSSToken.java | 186 * @param len the number of bytes to read 192 byte[] buffer, int offset, int len) 195 while (len > 0) { 196 temp = is.read(buffer, offset, len); 199 + len 202 len -= temp; 214 public static final String getHexBytes(byte[] bytes, int len) { argument 215 return getHexBytes(bytes, 0, len); 218 public static final String getHexBytes(byte[] bytes, int pos, int len) { argument 220 for (int i = pos; i < (pos+len); 191 readFully(InputStream is, byte[] buffer, int offset, int len) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/net/httpserver/ |
H A D | ChunkedOutputStream.java | 56 final static int OFFSET = 6; /* initial <=4 bytes for len + CRLF */ 79 public void write (byte[]b, int off, int len) throws IOException { argument 84 if (len > remain) { 88 len -= remain; 90 while (len >= CHUNK_SIZE) { 92 len -= CHUNK_SIZE; 98 if (len > 0) { 99 System.arraycopy (b,off,buf,pos,len); 100 count += len; 101 pos += len; [all...] |
/openjdk7/jdk/src/share/classes/org/jcp/xml/dsig/internal/ |
H A D | DigesterOutputStream.java | 90 public void write(byte[] input, int offset, int len) { argument 92 bos.write(input, offset, len); 96 StringBuffer sb = new StringBuffer(len); 97 for (int i=offset; i<(offset+len); i++) { 102 md.update(input, offset, len);
|
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | InputStream.java | 105 * Reads up to <code>len</code> bytes of data from the input stream into 107 * <code>len</code> bytes, but a smaller number may be read. 113 * <p> If <code>len</code> is zero, then no bytes are read and 121 * is, at most, equal to <code>len</code>. Let <i>k</i> be the number of 125 * <code>b[off+len-1]</code> unaffected. 128 * <code>b[off]</code> and elements <code>b[off+len]</code> through 131 * <p> The <code>read(b,</code> <code>off,</code> <code>len)</code> method 135 * the <code>read(b,</code> <code>off,</code> <code>len)</code> method. If 141 * until the requested amount of input data <code>len</code> has been read, 148 * @param len th 161 read(byte b[], int off, int len) argument [all...] |
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 | BufferedInputStream.java | 265 private int read1(byte[] b, int off, int len) throws IOException { argument 272 if (len >= getBufIfOpen().length && markpos < 0) { 273 return getInIfOpen().read(b, off, len); 279 int cnt = (avail < len) ? avail : len; 315 * @param len maximum number of bytes to read. 322 public synchronized int read(byte b[], int off, int len) argument 326 if ((off | len | (off + len) | (b.length - (off + len))) < [all...] |
/openjdk7/hotspot/src/share/vm/adlc/ |
H A D | filebuff.cpp | 95 int off, int len) 96 : _bfr(bufr), _sol(soln), _line(ln), _offset(off), _length(len) { 177 const char *_sol, int skip, int len ) { 201 len--; // 1 less char to do 208 if( len > llen ) { // Doing entire rest of line? 212 return len-llen; // Return what's not yet done. 218 for( i=1; i<len; i++ ) // Underline just what's needed 220 if( i == len ) os << '^'; // Mark end of region 247 int len = printline( os, _bfr->_fp->_name, _line, s, skip, _length ); local 249 if( !len ) retur 94 FileBuffRegion( FileBuff* bufr, int soln, int ln, int off, int len) argument [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/mimepull/ |
H A D | ChunkInputStream.java | 40 int len; field in class:ChunkInputStream 47 len = current.data.size(); 57 sz = Math.min(sz, len-offset); 75 while(offset==len) { 86 this.len = current.data.size();
|
/openjdk7/jdk/src/solaris/native/sun/nio/fs/ |
H A D | UnixCopyFile.c | 60 ssize_t n, pos, len; local 72 len = n; 76 RESTARTABLE(write((int)dst, bufp, len), n); 82 len -= n; 83 } while (len > 0);
|
/openjdk7/jdk/test/java/io/readBytes/ |
H A D | ReadBytesBounds.java | 34 * The test calls the read(byte buf[] , int off , int len) of 35 * FileInputStream with different values of off and len to see if the 84 static void testRead(int off, int len, boolean expected) throws Throwable { argument 85 System.err.printf("off=%d len=%d expected=%b%n", off, len, expected); 88 fis.read(b, off, len); 89 raf.read(b, off, len); 97 (String.format("Unexpected result off=%d len=%d expected=%b", 98 off, len, expected));
|
/openjdk7/jdk/test/java/lang/StringBuffer/ |
H A D | AppendCharSequence.java | 65 int len = generator.nextInt(100); 66 while (index > sb2.length() - len) { 68 len = generator.nextInt(100); 70 sb5.append((CharSequence)sb2, index, index + len); 71 s5 = s5 + sb2.toString().substring(index, index + len); 93 len = generator.nextInt(100); 94 while (index2 > sb4.length() - len) { 96 len = generator.nextInt(100); 98 sb5.insert(index1, (CharSequence)sb4, index2, index2 + len); 100 index2, len) [all...] |
/openjdk7/jdk/src/share/native/common/ |
H A D | jdk_util.c | 61 int len = strlen(jdk_build_string); local 62 if (jdk_build_string[0] == 'b' && len >= 2) { 64 for (i = 1; i < len; i++) { 73 if (i == len) { 74 build_number[len-1] = '\0';
|
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | ByteBufferInputStream.java | 84 public int read(byte b[], int off, int len) throws IOException { argument 92 } else if (off < 0 || len < 0 || len > b.length - off) { 94 } else if (len == 0) { 98 int length = Math.min(bb.remaining(), len);
|
/openjdk7/jdk/test/javax/management/remote/mandatory/ |
H A D | URLTest.java | 119 final int len = host.length(); 120 if (accept != uriAccept && len != 0 && 121 !(len > 1 && host.charAt(len - 1) == '.' 122 && host.charAt(len - 2) != '.')) {
|
/openjdk7/jdk/src/share/classes/sun/rmi/log/ |
H A D | LogInputStream.java | 79 * @param len the maximum number of bytes read 84 public int read(byte b[], int off, int len) throws IOException { argument 87 len = (length < len) ? length : len; 88 int n = in.read(b, off, len);
|
/openjdk7/jdk/src/share/npt/ |
H A D | utf.h | 48 int len, char *output, int outputMaxLen); 50 (struct UtfInst *ui, char *str, int len, 53 (struct UtfInst *ui, jbyte *utf8, int len, 56 (struct UtfInst *ui, jchar *utf16, int len, 59 (struct UtfInst *ui, jchar *utf16, int len,
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/ |
H A D | PerfDataEntry.java | 197 int len = vectorLength(); 199 Assert.that(len > 0 && 202 boolean[] res = new boolean[len]; 205 for (int i = 0; i < len; i++) { 212 int len = vectorLength(); 214 Assert.that(len > 0 && 217 char[] res = new char[len]; 220 for (int i = 0; i < len; i++) { 227 int len = vectorLength(); 229 Assert.that(len > [all...] |
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/ |
H A D | CipherCore.java | 532 int len = update(input, inputOffset, inputLen, output, 534 if (len == output.length) { 537 out = new byte[len]; 538 System.arraycopy(output, 0, out, 0, len); 572 int len = buffered + inputLen - minBytes; 575 len -= blockSize; 578 len = (len > 0 ? (len - (len 840 finalNoPadding(byte[] in, int inOff, byte[] out, int outOff, int len) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/tools/hat/internal/model/ |
H A D | JavaValueArray.java | 104 int len = buf.getInt(offset); 107 return len * elementSize(type); 204 final int len = getLength(); 210 boolean[] res = new boolean[len]; 211 for (int i = 0; i < len; i++) { 218 byte[] res = new byte[len]; 219 for (int i = 0; i < len; i++) { 226 char[] res = new char[len]; 227 for (int i = 0; i < len; i++) { 234 short[] res = new short[len]; [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/tools/jcore/ |
H A D | PackageNameFilter.java | 54 final int len = pkgList.length; 55 if (len == 0) 57 for (int i=0; i < len; i++)
|
/openjdk7/jdk/src/share/classes/javax/sound/sampled/ |
H A D | AudioInputStream.java | 240 * If <code>len</code> does not specify an integral number 241 * of frames, a maximum of <code>len - (len % frameSize) 247 * @param len the maximum number of bytes to read 256 public int read(byte[] b, int off, int len) throws IOException { argument 259 if( (len%frameSize) != 0 ) { 260 len -= (len%frameSize); 261 if (len == 0) { 272 if( (len/frameSiz 507 read(byte[] b, int off, int len) argument [all...] |