Searched defs:key (Results 151 - 175 of 907) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/sun/util/resources/
H A DOpenListResourceBundle.java69 public Object handleGetObject(String key) { argument
70 if (key == null) {
75 return lookup.get(key); // this class ignores locales
128 // key must be non-null String, value must be non-null
129 String key = (String) contents[i][0];
131 if (key == null || value == null) {
134 temp.put(key, value);
/openjdk7/jdk/test/java/security/KeyFactory/
H A DFailover.java125 engineGetKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException argument
131 protected Key engineTranslateKey(Key key) throws InvalidKeyException { argument
150 protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException { argument
155 protected Key engineTranslateKey(Key key) throws InvalidKeyException { argument
/openjdk7/jdk/test/java/security/Provider/
H A DSupportsParameter.java98 private static void checkSupports(Service s, Key key, boolean r) throws Exception { argument
99 if (s.supportsParameter(key) != r) {
/openjdk7/jdk/test/java/util/Hashtable/
H A DReadObject.java57 public Object get(Object key) { argument
58 ValueWrapper valueWrapper = (ValueWrapper)super.get(key);
65 public Object put(Object key, Object value) { argument
70 super.put(key, valueWrapper);
97 myHashtable.put("key", "value");
99 String value = (String)myHashtableCopy.get("key");
/openjdk7/jdk/test/java/util/ResourceBundle/
H A DKeySetTest.java58 for (String key : fullKeys) {
59 if (!rb.containsKey(key)) {
60 throw new RuntimeException("rb doesn't contain: " + key);
63 for (String key : new String[] { "snack", "beer" }) {
64 if (rb.containsKey(key)) {
65 throw new RuntimeException("rb contains: " + key);
102 protected Object handleGetObject(String key) { argument
104 return m.invoke(bundle, key);
/openjdk7/jdk/test/javax/crypto/spec/DESKeySpec/
H A DCheckParity.java60 static private void check(String alg, byte [] key, argument
66 if (DESKeySpec.isParityAdjusted(key, 0)) {
72 throw new Exception("encoded key is not the expected key");
/openjdk7/jdk/test/javax/swing/MultiUIDefaults/4331767/
H A Dbug4331767.java61 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/jdk/test/sun/net/www/httptest/
H A DClosedChannelList.java34 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/management/jdp/
H A DJdpPacketWriter.java33 * <p>This class assembles a set of key/value pairs to valid JDP packet,
72 * Put key/value pair to packet
74 * @param key - key to put (utf-8 encoded)
78 public void addEntry(String key, String val) argument
80 /* Silently skip key if value is null.
81 * We don't need to distinguish between key missing
82 * and key has no value cases
85 addEntry(key);
/openjdk7/jdk/src/share/classes/sun/misc/
H A DJavaAWTAccess.java32 public Object get(Object context, Object key); argument
33 public void put(Object context, Object key, Object value); argument
34 public void remove(Object context, Object key); argument
37 public Object get(Object key); argument
38 public void put(Object key, Object value); argument
39 public void remove(Object key); argument
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DMembershipRegistry.java57 for (MembershipKeyImpl key: keys) {
58 if (key.networkInterface().equals(interf)) {
60 // existing key or detect conflict
62 if (key.sourceAddress() == null)
63 return key;
67 // already have source-specific membership so return key
69 if (key.sourceAddress() == null)
71 if (source.equals(key.sourceAddress()))
72 return key;
81 * Add membership to the registry, returning a new membership key
83 add(MembershipKeyImpl key) argument
102 remove(MembershipKeyImpl key) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/rmi/rmic/newrmic/
H A DResources.java63 * 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/src/solaris/classes/sun/awt/X11/
H A DXCreateWindowParams.java47 public XCreateWindowParams putIfNull(Object key, Object value) { argument
48 if (!containsKey(key)) {
49 put(key, value);
53 public XCreateWindowParams putIfNull(Object key, int value) { argument
54 if (!containsKey(key)) {
55 put(key, Integer.valueOf(value));
59 public XCreateWindowParams putIfNull(Object key, long value) { argument
60 if (!containsKey(key)) {
61 put(key, Long.valueOf(value));
66 public XCreateWindowParams add(Object key, Objec argument
70 add(Object key, int value) argument
74 add(Object key, long value) argument
78 delete(Object key) argument
[all...]
/openjdk7/langtools/test/tools/javac/generics/
H A DExtendedRaw2.java40 int binarySearch(List<T> list, T key) { argument
44 int binarySearch(List<T> list, T key, Comparator<T> c) { argument
/openjdk7/jdk/test/sun/security/pkcs11/ec/
H A DTestKeyFactory.java42 * 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/jdk/test/sun/security/pkcs11/rsa/
H A DTestKeyFactory.java54 * Test that key1 (reference key) and key2 (key to be tested) are
78 private static void testPublic(KeyFactory kf, PublicKey key) throws Exception { argument
79 System.out.println("Testing public key...");
80 PublicKey key2 = (PublicKey)kf.translateKey(key);
81 KeySpec rsaSpec = kf.getKeySpec(key, RSAPublicKeySpec.class);
83 KeySpec x509Spec = kf.getKeySpec(key, X509EncodedKeySpec.class);
85 KeySpec x509Spec2 = new X509EncodedKeySpec(key.getEncoded());
87 testKey(key, key);
94 testPrivate(KeyFactory kf, PrivateKey key) argument
119 test(KeyFactory kf, Key key) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/
H A DMultiHashtable.java35 public Object put(Object key, Object value) { argument
36 Vector vector = (Vector)get(key);
38 super.put(key, vector = new Vector());
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/msg/
H A DXMLMessageFormatter.java59 * @param key The message key.
67 * specified key cannot be found.
69 public String formatMessage(Locale locale, String key, Object[] arguments) argument
85 msg = fResourceBundle.getString(key);
92 msg += " " + fResourceBundle.getString(key);
100 throw new MissingResourceException(key, msg, key);
105 msg = key;
H A DXMLMessageFormatter_de.java61 * @param key The message key.
69 * specified key cannot be found.
71 public String formatMessage(Locale locale, String key, Object[] arguments) argument
87 msg = fResourceBundle.getString(key);
94 msg += " " + fResourceBundle.getString(key);
102 throw new MissingResourceException(key, msg, key);
107 msg = key;
H A DXMLMessageFormatter_es.java61 * @param key The message key.
69 * specified key cannot be found.
71 public String formatMessage(Locale locale, String key, Object[] arguments) argument
87 msg = fResourceBundle.getString(key);
94 msg += " " + fResourceBundle.getString(key);
102 throw new MissingResourceException(key, msg, key);
107 msg = key;
H A DXMLMessageFormatter_fr.java61 * @param key The message key.
69 * specified key cannot be found.
71 public String formatMessage(Locale locale, String key, Object[] arguments) argument
87 msg = fResourceBundle.getString(key);
94 msg += " " + fResourceBundle.getString(key);
102 throw new MissingResourceException(key, msg, key);
107 msg = key;
H A DXMLMessageFormatter_it.java61 * @param key The message key.
69 * specified key cannot be found.
71 public String formatMessage(Locale locale, String key, Object[] arguments) argument
87 msg = fResourceBundle.getString(key);
94 msg += " " + fResourceBundle.getString(key);
102 throw new MissingResourceException(key, msg, key);
107 msg = key;
H A DXMLMessageFormatter_ja.java61 * @param key The message key.
69 * specified key cannot be found.
71 public String formatMessage(Locale locale, String key, Object[] arguments) argument
87 msg = fResourceBundle.getString(key);
94 msg += " " + fResourceBundle.getString(key);
102 throw new MissingResourceException(key, msg, key);
107 msg = key;
H A DXMLMessageFormatter_ko.java61 * @param key The message key.
69 * specified key cannot be found.
71 public String formatMessage(Locale locale, String key, Object[] arguments) argument
87 msg = fResourceBundle.getString(key);
94 msg += " " + fResourceBundle.getString(key);
102 throw new MissingResourceException(key, msg, key);
107 msg = key;
H A DXMLMessageFormatter_pt_BR.java61 * @param key The message key.
69 * specified key cannot be found.
71 public String formatMessage(Locale locale, String key, Object[] arguments) argument
87 msg = fResourceBundle.getString(key);
94 msg += " " + fResourceBundle.getString(key);
102 throw new MissingResourceException(key, msg, key);
107 msg = key;

Completed in 2312 milliseconds

1234567891011>>