1 17 18 19 20 package org.apache.lenya.xml.parser; 21 22 import java.io.InputStream ; 23 import java.io.Reader ; 24 25 import org.w3c.dom.CDATASection ; 26 import org.w3c.dom.Comment ; 27 import org.w3c.dom.Document ; 28 import org.w3c.dom.Element ; 29 import org.w3c.dom.Text ; 30 31 32 35 public interface Parser { 36 45 Document getDocument(String filename) throws Exception ; 46 47 57 Document getDocument(Reader reader) throws Exception ; 58 59 68 Document getDocument(InputStream is) throws Exception ; 69 70 75 Document getDocument(); 76 77 85 Element newElementNode(Document document, String name); 86 87 96 Element newElementNSNode(Document document, String namespaceUri, String qualifiedName); 97 98 106 Text newTextNode(Document document, String data); 107 108 116 CDATASection newCDATASection(Document document, String data); 117 118 126 Comment newCommentNode(Document document, String data); 127 } 128 | Popular Tags |