Code example for Hashtable

Methods: put

0
		return defaultUploadDir(); 
	} 
 
    @Override 
	protected Hashtable<String, String> persistenceFields (Hashtable<String, String> set) {
		Hashtable<String, String> fieldPairs = new Hashtable<String, String>();
		FreenetURI furi = null;
		String key = set.get("key");
		if (key != null) {
			try { 
				furi = new FreenetURI(key);
			} catch (MalformedURLException e) {
				furi = null;
			} 
		} 
 
		String element = set.get("compress");
		if (element != null && Boolean.valueOf(element)) {
			fieldPairs.put("compress", element);
		} 
 
		element = set.get("compatibilityMode"); 
		if (element != null) {
			fieldPairs.put("compatibilityMode", element);
		} 
 
		if (furi != null) {
			fieldPairs.put("key", furi.toASCIIString());
		} 
 
		element = set.get("overrideSplitfileKey");
		if (element != null) fieldPairs.put("overrideSplitfileKey", element);
		return fieldPairs;
	} 
}