1 27 package org.htmlparser.util; 28 29 import java.util.Hashtable ; 30 31 39 public class SpecialHashtable extends Hashtable 40 { 41 44 public final static String TAGNAME = "$<TAGNAME>$"; 45 46 49 public final static String NULLVALUE = "$<NULL>$"; 50 51 54 public final static String NOTHING = "$<NOTHING>$"; 55 56 60 public SpecialHashtable () 61 { 62 super (); 63 } 64 65 69 public SpecialHashtable (int initialCapacity) 70 { 71 super (initialCapacity); 72 } 73 74 78 public SpecialHashtable (int initialCapacity, float loadFactor) 79 { 80 super (initialCapacity, loadFactor); 81 } 82 83 89 public Object get (Object key) 90 { 91 Object ret; 92 93 ret = getRaw (key); 94 if (NULLVALUE == ret) 95 ret = null; 96 else if (NOTHING == ret) 97 ret = ""; 98 99 return (ret); 100 } 101 102 106 public Object getRaw (Object key) 107 { 108 return (super.get (key)); 109 } 110 } 111 | Popular Tags |