/openjdk7/jdk/src/share/classes/javax/crypto/spec/ |
H A D | PBEKeySpec.java | 80 if ((password == null) || (password.length == 0)) { 90 * to-be-derived key length for generating PBEKey of variable-key-size 101 * @param keyLength the to-be-derived key length. 104 * i.e. 0-length, <code>iterationCount</code> or 109 if ((password == null) || (password.length == 0)) { 117 } else if (salt.length == 0) { 148 * i.e. 0-length, or <code>iterationCount</code> is not positive. 151 if ((password == null) || (password.length == 0)) { 159 } else if (salt.length == 0) { 177 for (int i = 0; i < password.length; [all...] |
/openjdk7/jdk/src/share/classes/com/sun/jmx/remote/protocol/iiop/ |
H A D | ProxyInputStream.java | 101 public void read_boolean_array(boolean[] value, int offset, int length) { argument 102 in.read_boolean_array(value, offset, length); 105 public void read_char_array(char[] value, int offset, int length) { argument 106 in.read_char_array(value, offset, length); 109 public void read_wchar_array(char[] value, int offset, int length) { argument 110 in.read_wchar_array(value, offset, length); 113 public void read_octet_array(byte[] value, int offset, int length) { argument 114 in.read_octet_array(value, offset, length); 117 public void read_short_array(short[] value, int offset, int length) { argument 118 in.read_short_array(value, offset, length); 121 read_ushort_array(short[] value, int offset, int length) argument 125 read_long_array(int[] value, int offset, int length) argument 129 read_ulong_array(int[] value, int offset, int length) argument 133 read_longlong_array(long[] value, int offset, int length) argument 137 read_ulonglong_array(long[] value, int offset, int length) argument 141 read_float_array(float[] value, int offset, int length) argument 145 read_double_array(double[] value, int offset, int length) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | FastShortMessage.java | 55 int length = 0; 59 length = getDataLength(packedMsg & 0xFF) + 1; 63 byte[] returnedArray = new byte[length]; 64 if (length>0) { 66 if (length>1) { 68 if (length>2) {
|
/openjdk7/jdk/src/share/classes/java/awt/datatransfer/ |
H A D | MimeTypeParameterList.java | 115 int length = rawdata.length(); 116 if(length > 0) { 120 if(currentIndex < length) { 122 while ((currentIndex < length) && (currentChar == ';')) { 135 if(currentIndex < length) { 139 while((currentIndex < length) && isTokenChar(currentChar)) { 150 if((currentIndex < length) && (rawdata.charAt(currentIndex) == '=')) { 157 if(currentIndex < length) { 165 if(currentIndex < length) { [all...] |
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/common/ |
H A D | BogusColorSpace.java | 82 if(colorvalue.length < getNumComponents()) { 84 ("colorvalue.length < getNumComponents()"); 96 if(rgbvalue.length < 3) { 98 ("rgbvalue.length < 3"); 104 Math.min(3, colorvalue.length)); 110 if(colorvalue.length < getNumComponents()) { 112 ("colorvalue.length < getNumComponents()"); 124 if(xyzvalue.length < 3) { 126 ("xyzvalue.length < 3"); 132 Math.min(3, colorvalue.length)); [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/dtdparser/ |
H A D | XmlNames.java | 54 for (int i = 1; i < value.length(); i++) 69 if (value == null || value.length() == 0) 75 for (int i = 1; i < value.length(); i++) 126 int length = token.length(); 128 for (int i = 0; i < length; i++)
|
/openjdk7/jdk/test/java/nio/charset/coders/ |
H A D | Surrogates.java | 64 for (int i = 0; i < input.length; i += 7) 65 osw.write(input, i, Math.min(input.length - i, 7)); 72 int rl = result.length + (doMalformed ? -1 : 0); 74 if (rl != output.length) 75 throw new Exception("Incorrect result length " 76 + rl + ", expected " + output.length); 77 for (int i = 0; i < output.length; i++)
|
/openjdk7/langtools/src/share/classes/com/sun/tools/classfile/ |
H A D | LineNumberTable_attribute.java | 39 LineNumberTable_attribute(ClassReader cr, int name_index, int length) throws IOException { argument 40 super(name_index, length); 53 super(name_index, 2 + line_number_table.length * Entry.length()); 54 this.line_number_table_length = line_number_table.length; 71 public static int length() { method in class:LineNumberTable_attribute.Entry
|
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/util/ |
H A D | KerberosFlags.java | 63 public KerberosFlags(int length) throws IllegalArgumentException { argument 64 bits = new BitArray(length); 67 public KerberosFlags(int length, byte[] a) throws IllegalArgumentException { argument 68 bits = new BitArray(length, a); 69 if (length != Krb5.KRB_FLAGS_MAX+1) { 75 bits = new BitArray((bools.length==Krb5.KRB_FLAGS_MAX+1)?
|
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | ByteBufferInputStream.java | 76 return read(b, 0, b.length); 92 } else if (off < 0 || len < 0 || len > b.length - off) { 98 int length = Math.min(bb.remaining(), len); 99 if (length == 0) { 103 bb.get(b, off, length); 104 return length;
|
/openjdk7/jdk/test/javax/crypto/spec/DESKeySpec/ |
H A D | CheckParity.java | 86 byte [] key3 = new byte [testKey.length * 3]; 87 byte [] expectedKey3 = new byte [expectedKey.length * 3]; 91 i * testKey.length, testKey.length); 93 i * testKey.length, testKey.length);
|
/openjdk7/jdk/test/sun/nio/cs/ |
H A D | MalformedSurrogates.java | 49 System.err.println(b.length); 50 for (int i = 0; i < b.length; i++) 53 if (b.length != 7) { 60 System.out.println(b2.length); 61 for(int i = 0; i < b2.length; i++) 63 if (b2.length != 8) {
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/algorithm/ |
H A D | BASE64EncodingAlgorithm.java | 116 public final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException { argument 117 final byte[] data = new byte[length]; 118 System.arraycopy(b, start, data, 0, length); 135 public final Object convertFromCharacters(char[] ch, int start, int length) { argument 136 if (length == 0) { 140 StringBuffer encodedValue = removeWhitespace(ch, start, length); 141 int encodedLength = encodedValue.length(); 185 convertToCharacters(value, 0, value.length, s); 200 public final void convertToCharacters(byte[] data, int offset, int length, StringBuffer s) { argument 205 if (length [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/util/ |
H A D | ContiguousCharArrayArray.java | 69 for (int i = _readOnlyArraySize; i < _cachedStrings.length; i++) { 110 final char[] a = new char[_readOnlyArrayIndex + _array.length]; 121 final int[] a = new int[_readOnlyArraySize + _offset.length]; 132 final int[] a = new int[_readOnlyArraySize + _length.length]; 139 if (_cachedStrings != null && i < _cachedStrings.length) { 144 final String[] newCachedStrings = new String[_offset.length]; 145 if (_cachedStrings != null && i >= _cachedStrings.length) { 146 System.arraycopy(_cachedStrings, 0, newCachedStrings, 0, _cachedStrings.length); 154 if (_arrayIndex + l >= _array.length) { 160 if (_size == _offset.length) { [all...] |
/openjdk7/jdk/src/share/classes/sun/util/locale/ |
H A D | AsciiUtil.java | 39 int len = s1.length(); 40 if (len != s2.length()) { 79 for (; idx < s.length(); idx++) { 85 if (idx == s.length()) { 89 for (; idx < s.length(); idx++) { 97 for (; idx < s.length(); idx++) { 103 if (idx == s.length()) { 107 for (; idx < s.length(); idx++) { 114 if (s.length() == 0) { 120 for (idx = 1; idx < s.length(); id [all...] |
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/ |
H A D | BasicAuthentication.java | 70 byte[] passwdBytes = new byte[passwd.length]; 71 for (int i=0; i<passwd.length; i++) 75 byte[] concat = new byte[nameBytes.length + passwdBytes.length]; 76 System.arraycopy(nameBytes, 0, concat, 0, nameBytes.length); 77 System.arraycopy(passwdBytes, 0, concat, nameBytes.length, 78 passwdBytes.length); 110 byte[] passwdBytes = new byte[passwd.length]; 111 for (int i=0; i<passwd.length; i++) 115 byte[] concat = new byte[nameBytes.length [all...] |
/openjdk7/jdk/make/tools/src/build/tools/generatebreakiteratordata/ |
H A D | CharSet.java | 111 while (p < s.length()) { 126 if (q >= s.length()) { 299 if (category.length() == 0 || category.length() >= 3) { 306 if (category.length() == 2) { 307 for (int i = 0; i < CharacterCategory.categoryNames.length; i++) { 318 else if (category.length() == 1) { 320 for (int i = 0; i < CharacterCategory.categoryNames.length; i++) { 409 int[] result = new int[chars.length+c2.length]; [all...] |
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/crypto/dk/ |
H A D | AesDkCrypto.java | 61 * | key-generation seed length key size | 94 public AesDkCrypto(int length) { argument 95 keyLength = length; 123 if (params.length != 4) { 149 IvParameterSpec encIv = new IvParameterSpec(ivec, 0, ivec.length); 202 traceOutput("constant", constant, 0, constant.length); 203 traceOutput("baseKey", baseKey, 0, baseKey.length); 204 traceOutput("Kc", Kc, 0, Kc.length); 212 traceOutput("hmac", hmac, 0, hmac.length); 214 if (hmac.length [all...] |
/openjdk7/jdk/test/java/lang/reflect/Generics/ |
H A D | TestC1.java | 83 (sis.length == 0) : 91 tvs.length == 1 : 96 bs.length == 1 : 124 pt_mc1t.length == 3 : 138 bs.length == 1 : 159 tas.length == 1 : 172 bs.length == 1 : 186 pt_mc1.length == 0 : 191 pt_mt.length == 1 : 203 bs.length [all...] |
/openjdk7/jdk/src/share/classes/sun/security/provider/ |
H A D | KeyProtector.java | 68 * Repeat this step until the length of X matches the length of the private key 84 * generated, but taken from the result R of step 4 (the first length(s) 90 * last length(digest(p, P)) bytes of R. If they match, the recovered key is 105 private static final int SALT_LEN = 20; // the salt length 139 passwdBytes = new byte[password.length * 2]; 140 for (i=0, j=0; i<password.length; i++) { 185 numRounds = plainKey.length / DIGEST_LEN; 186 if ((plainKey.length % DIGEST_LEN) != 0) 195 byte[] xorKey = new byte[plainKey.length]; [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/text/ |
H A D | StringContent.java | 64 * size specified. If the length is < 1, a size of 1 is used. 78 * Returns the length of the content. 80 * @return the length >= 1 81 * @see AbstractDocument.Content#length 83 public int length() { method in class:StringContent 90 * @param where the starting position >= 0 && < length() 101 replace(where, 0, chars, 0, chars.length); 103 updateMarksForInsert(where, str.length()); 105 return new InsertUndo(where, str.length()); 109 * Removes part of the content. where + nitems must be < length() 193 replace(int offset, int length, char[] replArray, int replOffset, int replLength) argument 221 updateMarksForInsert(int offset, int length) argument 241 updateMarksForRemove(int offset, int length) argument 273 getPositionsInRange(Vector v, int offset, int length) argument 392 InsertUndo(int offset, int length) argument 433 protected int length; field in class:StringContent.InsertUndo 491 protected int length; field in class:StringContent.RemoveUndo [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/classfile/ |
H A D | LocalVariable.java | 75 private int length; field in class:LocalVariable 108 * @param length ... is valid 114 public LocalVariable(int start_pc, int length, int name_index, argument 119 this.length = length; 146 file.writeShort(length); 160 public final int getLength() { return length; } 210 * @param length. 212 public final void setLength(int length) { argument 213 this.length [all...] |
H A D | Unknown.java | 111 * @param length Content length in bytes 115 public Unknown(int name_index, int length, byte[] bytes, argument 118 super(Constants.ATTR_UNKNOWN, name_index, length, constant_pool); 129 * @param length Content length in bytes 134 Unknown(int name_index, int length, DataInputStream file, argument 138 this(name_index, length, (byte [])null, constant_pool); 140 if(length > 0) { 141 bytes = new byte[length]; [all...] |
/openjdk7/jdk/src/share/classes/javax/security/auth/callback/ |
H A D | ConfirmationCallback.java | 238 * if <code>options</code> has a length of 0, 241 * has a length of 0, or if <code>defaultOption</code> 249 options == null || options.length == 0 || 250 defaultOption < 0 || defaultOption >= options.length) 253 for (int i = 0; i < options.length; i++) { 254 if (options[i] == null || options[i].length() == 0) 288 * if <code>prompt</code> has a length of 0, 302 if (prompt == null || prompt.length() == 0 || 353 * if <code>prompt</code> has a length of 0, 357 * if <code>options</code> has a length o [all...] |
/openjdk7/jdk/src/share/classes/javax/sound/midi/ |
H A D | ShortMessage.java | 187 length = 3; 331 // set the length 332 length = dataLength + 1; 334 if (data == null || data.length < length) { 340 if (length > 1) { 342 if (length > 2) { 414 if (length > 1) { 427 if (length > 2) { 440 byte[] newData = new byte[length]; [all...] |