|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.xml.XmlParser
public class XmlParser
XML Parser wrapper. This class wraps any standard JAXP1.1 parser with convieniant error and entity handlers and a mini dom-like document tree.
By default, the parser is created as a validating parser only if xerces is present. This can be configured by setting the "org.eclipse.jetty.xml.XmlParser.Validating" system property.
| 嵌套类摘要 | |
|---|---|
static class |
XmlParser.Attribute
XML Attribute. |
static class |
XmlParser.Node
XML Node. |
| 构造方法摘要 | |
|---|---|
XmlParser()
Construct |
|
XmlParser(boolean validating)
Constructor. |
|
| 方法摘要 | |
|---|---|
void |
addContentHandler(String trigger,
ContentHandler observer)
Add a ContentHandler. |
String |
getDTD()
|
String |
getXpath()
|
XmlParser.Node |
parse(File file)
Parse File. |
XmlParser.Node |
parse(InputSource source)
|
XmlParser.Node |
parse(InputStream in)
Parse InputStream. |
XmlParser.Node |
parse(String url)
Parse String URL. |
void |
redirectEntity(String name,
URL entity)
|
void |
setValidating(boolean validating)
|
void |
setXpath(String xpath)
Set an XPath A very simple subset of xpath is supported to select a partial tree. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public XmlParser()
public XmlParser(boolean validating)
| 方法详细信息 |
|---|
public void setValidating(boolean validating)
public void redirectEntity(String name,
URL entity)
name - entity - public String getXpath()
public void setXpath(String xpath)
xpath - The xpath to set.public String getDTD()
public void addContentHandler(String trigger,
ContentHandler observer)
trigger - Tag local or q name.observer - SAX ContentHandler
public XmlParser.Node parse(InputSource source)
throws IOException,
SAXException
IOException
SAXException
public XmlParser.Node parse(String url)
throws IOException,
SAXException
IOException
SAXException
public XmlParser.Node parse(File file)
throws IOException,
SAXException
IOException
SAXException
public XmlParser.Node parse(InputStream in)
throws IOException,
SAXException
IOException
SAXException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||