/openjdk7/jdk/src/share/classes/java/util/prefs/ |
H A D | PreferenceChangeEvent.java | 52 private String key; field in class:PreferenceChangeEvent 65 * @param key The key of the preference that was changed. 69 public PreferenceChangeEvent(Preferences node, String key, argument 72 this.key = key; 86 * Returns the key of the preference that was changed. 88 * @return The key of the preference that was changed. 91 return key;
|
/openjdk7/jdk/src/share/classes/sun/util/locale/ |
H A D | LocaleObjectCache.java | 51 public V get(K key) { argument 55 CacheEntry<K, V> entry = map.get(key); 60 key = normalizeKey(key); 61 V newVal = createObject(key); 62 if (key == null || newVal == null) { 63 // subclass must return non-null key/value object 67 CacheEntry<K, V> newEntry = new CacheEntry<>(key, newVal, queue); 69 entry = map.putIfAbsent(key, newEntry); 75 map.put(key, newEntr 83 put(K key, V value) argument 97 createObject(K key) argument 99 normalizeKey(K key) argument 104 private K key; field in class:LocaleObjectCache.CacheEntry 106 CacheEntry(K key, V value, ReferenceQueue<V> queue) argument [all...] |
/openjdk7/jdk/test/java/util/ResourceBundle/ |
H A D | TestResource_fr.java | 64 public Object handleGetObject(String key) throws MissingResourceException { argument 65 if (key.equals("Time")) 67 else if (key.equals("For")) 69 else if (key.equals("All")) { 78 else if (key.equals("Good"))
|
/openjdk7/jdk/test/javax/swing/JFileChooser/6840086/ |
H A D | bug6840086.java | 52 for (String key : KEYS) { 53 Image image = (Image) ShellFolder.get(key); 56 throw new RuntimeException("The image '" + key + "' not found."); 59 if (image != ShellFolder.get(key)) { 60 throw new RuntimeException("The image '" + key + "' is not cached.");
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/framework/ |
H A D | Entity.java | 56 public Object getProperty(String key) { argument 59 return _properties.get(key); 62 public void setProperty(String key, Object value) { argument 64 removeProperty(key); 71 _properties.put(key, value); 74 public void removeProperty(String key) { argument 76 _properties.remove(key); 94 protected void failValidation(String key) { argument 95 throw new ValidationException(key, getElementName().getLocalPart()); 98 protected void failValidation(String key, Strin argument [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/util/ |
H A D | Localizer.java | 73 private String getString(String key) { argument 75 return getBundle().getString(key); 79 return parent.getString(key); 85 public String message(String key) { argument 86 return MessageFormat.format(getString(key), new Object[]{}); 89 public String message(String key, Object arg) { argument 90 return MessageFormat.format(getString(key), 94 public String message(String key, Object arg1, Object arg2) { argument 95 return MessageFormat.format(getString(key), new Object[]{ 99 public String message(String key, Objec argument [all...] |
/openjdk7/jdk/src/share/classes/sun/net/httpserver/ |
H A D | UnmodifiableHeaders.java | 43 public boolean containsKey(Object key) { argument 44 return map.containsKey (key); 51 public List<String> get(Object key) { argument 52 return map.get(key); 55 public String getFirst (String key) { argument 56 return map.getFirst(key); 60 public List<String> put(String key, List<String> value) { argument 61 return map.put (key, value); 64 public void add (String key, String value) { argument 68 public void set (String key, Strin argument 72 remove(Object key) argument [all...] |
/openjdk7/jdk/test/sun/security/ssl/sun/net/www/httpstest/ |
H A D | ClosedChannelList.java | 34 SelectionKey key; field in class:ClosedChannelList.Element 35 Element (long l, SelectionKey key) { argument 37 this.key = key; 49 public synchronized void add (SelectionKey key) { argument 51 list.add (new Element (exp, key)); 68 SelectionKey k = elm.key;
|
/openjdk7/jdk/test/sun/net/www/httptest/ |
H A D | ClosedChannelList.java | 34 SelectionKey key; field in class:ClosedChannelList.Element 35 Element (long l, SelectionKey key) { argument 37 this.key = key; 49 public synchronized void add (SelectionKey key) { argument 51 list.add (new Element (exp, key)); 68 SelectionKey k = elm.key;
|
/openjdk7/jdk/src/share/classes/sun/rmi/rmic/newrmic/ |
H A D | Resources.java | 63 * Returns the text of the rmic resource for the specified key 66 public static String getText(String key, String... args) { argument 67 String format = getString(key); 69 format = "missing resource key: key = \"" + key + "\", " + 76 * Returns the rmic resource string for the specified key. 78 private static String getString(String key) { argument 81 return resourcesExt.getString(key); 87 return resources.getString(key); [all...] |
/openjdk7/jdk/test/sun/security/pkcs11/ec/ |
H A D | TestKeyFactory.java | 42 * Test that key1 (reference key) and key2 (key to be tested) are 70 private static void testPublic(KeyFactory kf, PublicKey key) throws Exception { argument 71 System.out.println("Testing public key..."); 72 PublicKey key2 = (PublicKey)kf.translateKey(key); 73 KeySpec keySpec = kf.getKeySpec(key, ECPublicKeySpec.class); 75 KeySpec x509Spec = kf.getKeySpec(key, X509EncodedKeySpec.class); 77 KeySpec x509Spec2 = new X509EncodedKeySpec(key.getEncoded()); 79 testKey(key, key); 86 testPrivate(KeyFactory kf, PrivateKey key) argument 102 test(KeyFactory kf, Key key) argument [all...] |
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/orbutil/ |
H A D | CorbaResourceUtil.java | 32 public static String getString(String key) { argument 38 return resources.getString(key); 44 public static String getText(String key) { argument 45 String message = getString(key); 47 message = "no text found: \"" + key + "\""; 52 public static String getText(String key, int num) { argument 53 return getText(key, Integer.toString(num), null, null); 56 public static String getText(String key, String arg0) { argument 57 return getText(key, arg0, null, null); 60 public static String getText(String key, Strin argument 64 getText(String key, String arg0, String arg1, String arg2) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/tty/ |
H A D | MessageOutput.java | 70 * "Format" a string by doing a simple key lookup. 72 static String format(String key) { argument 73 return (textResources.getString(key)); 80 static String format(String key, String argument) { argument 81 return format(key, new Object [] {argument}); 85 * Fetch a string by key lookup and format in the arguments. 87 static synchronized String format(String key, Object [] arguments) { argument 89 messageFormat = new MessageFormat (textResources.getString(key)); 91 messageFormat.applyPattern (textResources.getString(key)); 128 static void print(String key) { argument 134 println(String key) argument 143 print(String key, String argument) argument 146 println(String key, String argument) argument 154 println(String key, Object [] arguments) argument 161 lnprint(String key) argument 166 lnprint(String key, String argument) argument 171 lnprint(String key, Object [] arguments) argument 179 printException(String key, Exception e) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/security/rsa/ |
H A D | RSAKeyFactory.java | 100 * or RSAPrivate(Crt)KeyImpl. If the key is not an RSA key or cannot be 105 public static RSAKey toRSAKey(Key key) throws InvalidKeyException { argument 106 if ((key instanceof RSAPrivateKeyImpl) || 107 (key instanceof RSAPrivateCrtKeyImpl) || 108 (key instanceof RSAPublicKeyImpl)) { 109 return (RSAKey)key; 111 return (RSAKey)INSTANCE.engineTranslateKey(key); 130 * Check the length of an RSA key modulus/exponent to make sure it 132 * max key size 180 engineTranslateKey(Key key) argument 222 translatePublicKey(PublicKey key) argument 248 translatePrivateKey(PrivateKey key) argument 341 engineGetKeySpec(Key key, Class<T> keySpec) argument [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/dv/ |
H A D | DatatypeException.java | 46 protected String key; field in class:DatatypeException 53 * @param key error code 56 public DatatypeException(String key, Object[] args) { argument 57 super(key); 58 this.key = key; 68 return key; 91 throw new MissingResourceException("Property file not found!", "com.sun.org.apache.xerces.internal.impl.msg.XMLSchemaMessages", key); 93 String msg = resourceBundle.getString(key); 96 throw new MissingResourceException(msg, "com.sun.org.apache.xerces.internal.impl.msg.XMLSchemaMessages", key); [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/text/ |
H A D | DateFormatter.java | 114 Object key = attrs.next(); 116 if ((key instanceof DateFormat.Field) && 117 (key == DateFormat.Field.HOUR1 || 118 ((DateFormat.Field)key).getCalendarField() != -1)) { 119 return key; 129 Object adjustValue(Object value, Map attributes, Object key, argument 132 if (key != null) { 137 if (key == DateFormat.Field.HOUR1) { 138 key = DateFormat.Field.HOUR0; 140 field = ((DateFormat.Field)key) [all...] |
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/crypto/ |
H A D | DesMacKCksumType.java | 75 * @param key the key used to encrypt the checksum. 80 public byte[] calculateKeyedChecksum(byte[] data, int size, byte[] key, argument 84 if (DESKeySpec.isWeak(key, 0)) { 85 key[7] = (byte)(key[7] ^ 0xF0); 90 byte[] ivec = new byte[key.length]; 91 System.arraycopy(key, 0, ivec, 0, key.length); 92 byte[] cksum = Des.des_cksum(ivec, data, key); 96 verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) argument [all...] |
H A D | DesCbcCrcEType.java | 66 * @param key the secret key to encrypt the data. It is also used as initialization vector during cipher block chaining. 71 public byte[] encrypt(byte[] data, byte[] key, int usage) argument 73 return encrypt(data, key, key, usage); 77 * Decrypts data with provided key using DES in CBC mode with CRC32. 79 * @param key the secret key to decrypt the data. 83 public byte[] decrypt(byte[] cipher, byte[] key, int usage) argument 85 return decrypt(cipher, key, ke [all...] |
/openjdk7/jdk/src/share/classes/javax/crypto/spec/ |
H A D | DESKeySpec.java | 31 * This class specifies a DES key. 40 * The constant which defines the length of a DES key in bytes. 44 private byte[] key; field in class:DESKeySpec 50 * each is both a key and a dual giving 12 keys with duals. The last 117 * <code>key</code> as the key material for the DES key. 119 * <p> The bytes that constitute the DES key are those between 120 * <code>key[0]</code> and <code>key[ 130 DESKeySpec(byte[] key) argument 153 DESKeySpec(byte[] key, int offset) argument 186 isParityAdjusted(byte[] key, int offset) argument 219 isWeak(byte[] key, int offset) argument [all...] |
/openjdk7/corba/src/share/classes/com/sun/tools/corba/se/idl/ |
H A D | ResourceBundleUtil.java | 68 public static String getMessage (String key) argument 70 return fBundle.getString(key); 73 public static String getMessage (String key, String fill) argument 76 return MessageFormat.format(fBundle.getString(key), args); 79 public static String getMessage (String key, String[] fill) argument 81 return MessageFormat.format(fBundle.getString(key), fill);
|
/openjdk7/jdk/src/share/classes/com/sun/beans/ |
H A D | WeakCache.java | 36 * when its key is no longer in the ordinary use. 48 * Returns a value to which the specified {@code key} is mapped, 49 * or {@code null} if this map contains no mapping for the {@code key}. 51 * @param key the key whose associated value is returned 52 * @return a value to which the specified {@code key} is mapped 54 public V get(K key) { argument 55 Reference<V> reference = this.map.get(key); 61 this.map.remove(key); 67 * Associates the specified {@code value} with the specified {@code key} 76 put(K key, V value) argument [all...] |
/openjdk7/jdk/test/javax/swing/MultiUIDefaults/4331767/ |
H A D | bug4331767.java | 61 public Object get(Object key) { argument 62 if ("ButtonUI".equals(key)) { 66 return defaults.get(key); 69 public Object get(Object key, Locale l) { argument 70 if ("ButtonUI".equals(key)) { 74 return defaults.get(key, l);
|
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/xni/parser/ |
H A D | XMLErrorHandler.java | 50 * @param key The warning key. This key can be any string and 57 public void warning(String domain, String key, argument 69 * @param key The error key. This key can be any string and 76 public void error(String domain, String key, argument 96 * @param key The fatal error key 103 fatalError(String domain, String key, XMLParseException exception) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/ |
H A D | PBEKey.java | 35 * This class represents a PBE key. 44 private byte[] key; field in class:PBEKey 49 * Creates a PBE key from a given PBE key specification. 51 * @param key the given PBE key specification 67 this.key = new byte[passwd.length]; 69 this.key[i] = (byte) (passwd[i] & 0x7f); 75 return (byte[])this.key.clone(); 92 for (int i = 1; i < this.key [all...] |
/openjdk7/jdk/src/share/demo/scripting/jconsole-plugin/src/scripts/ |
H A D | sysprops.js | 84 var key = keys.next(); 85 var value = map.get(key); 86 printFunc(key + "=" + value);
|