Lines Matching refs:key

77 	/** Set a key/value pair in the TXT record. Setting an existing key will replace its value.<P>
78 @param key
79 The key name. Must be ASCII, with no '=' characters.
84 public void set( String key, String value)
87 this.set( key, valBytes);
90 /** Set a key/value pair in the TXT record. Setting an existing key will replace its value.<P>
91 @param key
92 The key name. Must be ASCII, with no '=' characters.
97 public void set( String key, byte[] value)
103 keyBytes = key.getBytes( "US-ASCII");
116 int prevLoc = this.remove( key);
124 // Insert a key-value pair at index
151 /** Remove a key/value pair from the TXT record. Returns index it was at, or -1 if not found. */
152 public int remove( String key)
159 if ( key.length() <= avLen &&
160 ( key.length() == avLen || fBytes[ avStart + key.length() + 1] == kAttrSep))
162 String s = new String( fBytes, avStart + 1, key.length());
163 if ( 0 == key.compareToIgnoreCase( s))
187 /** Return true if key is present in the TXT record, false if not. */
188 public boolean contains( String key)
193 if ( 0 == key.compareToIgnoreCase( s))
198 /** Return a key in the TXT record by zero-based index. Returns null if index exceeds the total number of keys. */
220 Look up a key in the TXT record by zero-based index and return its value. <P>
222 Returns null if the key is present with no value.
257 /** Get the value associated with a key. Will be null if the key is not defined.
258 Array will have length 0 if the key is defined with an = but no value.<P>
261 The left-hand side of the key-value pair.
279 The left-hand side of the key-value pair.