1 22 23 28 29 package org.xquark.mapper.util; 30 31 import org.w3c.dom.Document ; 32 import org.xquark.mapper.RepositoryException; 33 import org.xquark.mapper.storage.RepositoryReader; 34 import org.xquark.util.NSPrefixFilter; 35 36 39 public class NSPrefixRepositoryFilter extends NSPrefixFilter 40 implements RepositoryReader 41 { 42 private static final String RCSRevision = "$Revision: 1.1 $"; 43 private static final String RCSName = "$Name: $"; 44 private RepositoryReader reader; 45 46 public NSPrefixRepositoryFilter(RepositoryReader reader) throws RepositoryException 47 { 48 super(reader); 49 this.reader = reader; 50 } 51 52 public void close() throws RepositoryException 53 { 54 reader.close(); 55 } 56 57 public Document getDocument(String ID) throws RepositoryException 58 { 59 return reader.getDocument(ID); 60 } 61 62 public void unPlug() 63 { 64 reader.unPlug(); 65 } 66 67 } 68 | Popular Tags |