| java.lang.Object com.caucho.xml2.AbstractParser com.caucho.xml2.XmlParser com.caucho.xml2.Xml
Xml | public class Xml extends XmlParser (Code) | | XML parser interface. The parser can parse directly into the DOM or it
can be used as a SAX parser.
To parse a file into a DOM Document use
Document doc = new Xml().parseDocument("foo.xml");
To parse a string into a DOM Document use
String xml = "<top>small test</top>";
Document doc = new Xml().parseDocumentString(xml);
To parse a file using the SAX API use
Xml xml = new Xml();
xml.setContentHandler(myContentHandler);
xml.parse("foo.xml");
|
Constructor Summary | |
public | Xml() |
Xml | public Xml()(Code) | | Create a new strict XML parser
|
create | public static Xml create()(Code) | | Creates an Xml parser.
|
createDOMImplementation | public static DOMImplementation createDOMImplementation()(Code) | | Create a new DOM implementation
|
free | public void free()(Code) | | Frees an Xml parser.
|
init | public void init()(Code) | | Initialize the parser.
|
Methods inherited from com.caucho.xml2.XmlParser | static String badChar(int ch)(Code)(Java Doc) public void close()(Code)(Java Doc) XmlParseException error(String text)(Code)(Java Doc) protected boolean fillBuffer() throws IOException(Code)(Java Doc) public void free()(Code)(Java Doc) int getColumn()(Code)(Java Doc) public int getColumnNumber()(Code)(Java Doc) public String getFilename()(Code)(Java Doc) public int getLine()(Code)(Java Doc) public int getLineNumber()(Code)(Java Doc) int getNodeLine()(Code)(Java Doc) public String getPublicId()(Code)(Java Doc) public String getSystemId()(Code)(Java Doc) void init()(Code)(Java Doc) Document parseInt(ReadStream is) throws IOException, SAXException(Code)(Java Doc) int parseName(CharBuffer cb, int ch) throws IOException, SAXException(Code)(Java Doc) void pushInclude(String systemId) throws IOException, SAXException(Code)(Java Doc) void pushInclude(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) final protected int read() throws IOException, SAXException(Code)(Java Doc) protected int readByte() throws IOException(Code)(Java Doc) public void setLine(int line)(Code)(Java Doc) void setMacro(String text) throws IOException, SAXException(Code)(Java Doc) void setMacroAttr(String text) throws IOException, SAXException(Code)(Java Doc) public void setReader(XmlReader reader)(Code)(Java Doc) final int skipWhitespace(int ch) throws IOException, SAXException(Code)(Java Doc) final public void unread(int ch)(Code)(Java Doc) protected void unreadByte(int ch)(Code)(Java Doc)
|
Methods inherited from com.caucho.xml2.AbstractParser | void clear()(Code)(Java Doc) public ContentHandler getContentHandler()(Code)(Java Doc) public DTDHandler getDTDHandler()(Code)(Java Doc) public String getDefaultEncoding()(Code)(Java Doc) public boolean getEntitiesAsText()(Code)(Java Doc) public EntityResolver getEntityResolver()(Code)(Java Doc) public ErrorHandler getErrorHandler()(Code)(Java Doc) public boolean getFeature(String name) throws SAXNotRecognizedException(Code)(Java Doc) public Object getProperty(String name) throws SAXNotRecognizedException(Code)(Java Doc) public boolean getSkipComments()(Code)(Java Doc) void init()(Code)(Java Doc) public boolean isCoalescing()(Code)(Java Doc) public boolean isNamespaceAware()(Code)(Java Doc) public boolean isNamespacePrefixes()(Code)(Java Doc) public boolean isSAXNamespaces()(Code)(Java Doc) public boolean isValidating()(Code)(Java Doc) protected InputStream openSource(InputSource source) throws IOException, SAXException(Code)(Java Doc) public InputStream openStream(String systemId, String publicId) throws IOException, SAXException(Code)(Java Doc) public InputStream openStream(String systemId, String publicId, EntityResolver entityResolver) throws IOException, SAXException(Code)(Java Doc) protected InputStream openStream(String systemId, String publicId, EntityResolver entityResolver, boolean isTop) throws IOException, SAXException(Code)(Java Doc) public InputStream openTopStream(String systemId, String publicId) throws IOException, SAXException(Code)(Java Doc) public void parse(InputSource source) throws IOException, SAXException(Code)(Java Doc) public void parse(InputStream is) throws IOException, SAXException(Code)(Java Doc) public void parse(InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc) public void parse(String systemId) throws IOException, SAXException(Code)(Java Doc) public void parse(Path path) throws IOException, SAXException(Code)(Java Doc) public Document parseDocument(InputSource source) throws IOException, SAXException(Code)(Java Doc) public Document parseDocument(String systemId) throws IOException, SAXException(Code)(Java Doc) public Document parseDocument(Path path) throws IOException, SAXException(Code)(Java Doc) public Document parseDocument(InputStream is) throws IOException, SAXException(Code)(Java Doc) public Document parseDocument(InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc) public void parseDocument(QDocument doc, InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc) public Document parseDocumentString(String string) throws IOException, SAXException(Code)(Java Doc) public void parseImpl(InputStream is, String systemId) throws IOException, SAXException(Code)(Java Doc) abstract Document parseInt(ReadStream is) throws IOException, SAXException(Code)(Java Doc) public void parseString(String string) throws IOException, SAXException(Code)(Java Doc) public void setCoalescing(boolean isCoalescing)(Code)(Java Doc) public void setConfig(DocumentBuilderFactory factory)(Code)(Java Doc) public void setContentHandler(ContentHandler handler)(Code)(Java Doc) public void setDTDHandler(DTDHandler handler)(Code)(Java Doc) public void setDefaultEncoding(String encoding)(Code)(Java Doc) public void setDocumentHandler(DocumentHandler handler)(Code)(Java Doc) public void setEntitiesAsText(boolean entitiesAsText)(Code)(Java Doc) public void setEntityResolver(EntityResolver resolver)(Code)(Java Doc) public void setErrorHandler(ErrorHandler handler)(Code)(Java Doc) public void setExpandEntities(boolean expandEntities)(Code)(Java Doc) public void setFeature(String name, boolean value) throws SAXNotSupportedException(Code)(Java Doc) public void setLexicalHandler(LexicalHandler handler)(Code)(Java Doc) public void setLocale(Locale locale)(Code)(Java Doc) public void setNamespaceAware(boolean isNamespaceAware)(Code)(Java Doc) public void setNamespacePrefixes(boolean isNamespaces)(Code)(Java Doc) public void setOwner(QDocument doc)(Code)(Java Doc) public void setProperty(String name, Object obj) throws SAXNotSupportedException(Code)(Java Doc) public void setSAXNamespaces(boolean isNamespaces)(Code)(Java Doc) public void setSkipComments(boolean skipComments)(Code)(Java Doc) public void setSkipWhitespace(boolean skipWhitespace)(Code)(Java Doc) public void setValidating(boolean isValidating)(Code)(Java Doc)
|
|
|