Lines Matching refs:key

54 	/** Set a key/value pair in the TXT record. Setting an existing key will replace its value.<P>
55 @param key
56 The key name. Must be ASCII, with no '=' characters.
61 public void set( String key, String value)
64 this.set( key, valBytes);
67 /** Set a key/value pair in the TXT record. Setting an existing key will replace its value.<P>
68 @param key
69 The key name. Must be ASCII, with no '=' characters.
74 public void set( String key, byte[] value)
80 keyBytes = key.getBytes( "US-ASCII");
93 int prevLoc = this.remove( key);
101 // Insert a key-value pair at index
128 /** Remove a key/value pair from the TXT record. Returns index it was at, or -1 if not found. */
129 public int remove( String key)
136 if ( key.length() <= avLen &&
137 ( key.length() == avLen || fBytes[ avStart + key.length() + 1] == kAttrSep))
139 String s = new String( fBytes, avStart + 1, key.length());
140 if ( 0 == key.compareToIgnoreCase( s))
164 /** Return true if key is present in the TXT record, false if not. */
165 public boolean contains( String key)
170 if ( 0 == key.compareToIgnoreCase( s))
175 /** Return a key in the TXT record by zero-based index. Returns null if index exceeds the total number of keys. */
197 Look up a key in the TXT record by zero-based index and return its value. <P>
199 Returns null if the key is present with no value.
234 /** Get the value associated with a key. Will be null if the key is not defined.
235 Array will have length 0 if the key is defined with an = but no value.<P>
238 The left-hand side of the key-value pair.
256 The left-hand side of the key-value pair.