< prev index next >

test/javax/xml/jaxp/functional/test/astro/DocumentLSTest.java

Print this page




 165 
 166         public void setCharacterStream(Writer cs) {
 167             writer = cs;
 168         }
 169 
 170         public void setEncoding(String enc) {
 171             encoding = enc;
 172         }
 173 
 174         public void setSystemId(String sysId) {
 175             this.sysId = sysId;
 176         }
 177     }
 178 
 179     private DocumentBuilder getDocumentBuilder() throws ParserConfigurationException {
 180         DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
 181         dbf.setNamespaceAware(true);
 182         return dbf.newDocumentBuilder();
 183     }
 184 }
 185 


 165 
 166         public void setCharacterStream(Writer cs) {
 167             writer = cs;
 168         }
 169 
 170         public void setEncoding(String enc) {
 171             encoding = enc;
 172         }
 173 
 174         public void setSystemId(String sysId) {
 175             this.sysId = sysId;
 176         }
 177     }
 178 
 179     private DocumentBuilder getDocumentBuilder() throws ParserConfigurationException {
 180         DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
 181         dbf.setNamespaceAware(true);
 182         return dbf.newDocumentBuilder();
 183     }
 184 }

< prev index next >