KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > tbutils > res > NullResourceProvider


1 package com.tonbeller.tbutils.res;
2
3 import java.util.Collection JavaDoc;
4 import java.util.Collections JavaDoc;
5
6 /**
7  * Dummy that does not know any key/values
8  */

9 public class NullResourceProvider implements ResourceProvider {
10
11   public String JavaDoc getString(String JavaDoc key) {
12     return null;
13   }
14
15   public Collection JavaDoc keySet() {
16     return Collections.EMPTY_SET;
17   }
18
19   public void close() {
20   }
21
22   public void dump(Dumper d) {
23     d.dump(this);
24   }
25   public String JavaDoc getName() {
26     return "Empty Provider";
27   }
28 }
29
Popular Tags