1 22 package org.jnp.interfaces; 23 24 import java.io.InputStream ; 25 import java.io.PrintStream ; 26 import java.io.PrintWriter ; 27 import java.util.Enumeration ; 28 import java.util.Map ; 29 import java.util.Properties ; 30 31 42 class FastNamingProperties extends Properties 43 { 44 45 private static final long serialVersionUID = 190486940953472275L; 46 47 FastNamingProperties() 48 { 49 } 50 51 public Object setProperty(String s1, String s2) 52 { 53 throw new UnsupportedOperationException (); 54 } 55 56 public void load(InputStream is) throws java.io.IOException 57 { 58 throw new UnsupportedOperationException (); 59 } 60 61 public String getProperty(String s) 62 { 63 if (s.equals("jndi.syntax.direction")) 64 { 65 return "left_to_right"; 66 } 67 else if (s.equals("jndi.syntax.ignorecase")) 68 { 69 return "false"; 70 } 71 else if (s.equals("jndi.syntax.separator")) 72 { 73 return "/"; 74 } 75 else 76 { 77 return null; 78 } 79 } 80 81 public String getProperty(String name, String defaultValue) 82 { 83 String ret = getProperty(name); 84 if (ret == null) 85 { 86 ret = defaultValue; 87 } 88 return ret; 89 } 90 91 public Enumeration propertyNames() 92 { 93 throw new UnsupportedOperationException (); 94 } 95 96 public void list(PrintStream ps) 97 { 98 throw new UnsupportedOperationException (); 99 } 100 101 public void list(PrintWriter ps) 102 { 103 throw new UnsupportedOperationException (); 104 } 105 106 108 public int size() 109 { 110 throw new UnsupportedOperationException (); 111 } 112 113 public boolean isEmpty() 114 { 115 throw new UnsupportedOperationException (); 116 } 117 118 public Enumeration keys() 119 { 120 throw new UnsupportedOperationException (); 121 } 122 123 public Enumeration elements() 124 { 125 throw new UnsupportedOperationException (); 126 } 127 128 public boolean contains(Object o) 129 { 130 throw new UnsupportedOperationException (); 131 } 132 133 public boolean containsValue(Object o) 134 { 135 throw new UnsupportedOperationException (); 136 } 137 138 public boolean containsKey(Object o) 139 { 140 throw new UnsupportedOperationException (); 141 } 142 143 public Object get(Object o) 144 { 145 throw new UnsupportedOperationException (); 146 } 147 148 public Object put(Object o1, Object o2) 149 { 150 throw new UnsupportedOperationException (); 151 } 152 153 public Object remove(Object o) 154 { 155 throw new UnsupportedOperationException (); 156 } 157 158 public void putAll(Map m) 159 { 160 throw new UnsupportedOperationException (); 161 } 162 163 public void clear() 164 { 165 throw new UnsupportedOperationException (); 166 } 167 168 public Object clone() 169 { 170 throw new UnsupportedOperationException (); 171 } 172 173 public String toString() 174 { 175 throw new UnsupportedOperationException (); 176 } 177 178 public java.util.Set keySet() 179 { 180 throw new UnsupportedOperationException (); 181 } 182 183 public java.util.Set entrySet() 184 { 185 throw new UnsupportedOperationException (); 186 } 187 188 public java.util.Collection values() 189 { 190 throw new UnsupportedOperationException (); 191 } 192 193 public boolean equals(Object o) 194 { 195 throw new UnsupportedOperationException (); 196 } 197 198 public int hashCode() 199 { 200 throw new UnsupportedOperationException (); 201 } 202 } 203 | Popular Tags |