org.dom4j.io.XPP3Reader.createReader()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(10.1k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中org.dom4j.io.XPP3Reader.createReader()方法的一些代码示例,展示了XPP3Reader.createReader()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPP3Reader.createReader()方法的具体详情如下:
包路径:org.dom4j.io.XPP3Reader
类名称:XPP3Reader
方法名:createReader

XPP3Reader.createReader介绍

[英]Factory method to create a Reader from the given InputStream.
[中]工厂方法从给定的输入流创建读取器。

代码示例

代码示例来源:origin: org.dom4j/dom4j

/**
 * <p>
 * Reads a Document from the given <code>URL</code>
 * </p>
 * 
 * @param url
 *            <code>URL</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(URL url) throws DocumentException, IOException,
    XmlPullParserException {
  String systemID = url.toExternalForm();
  return read(createReader(url.openStream()), systemID);
}

代码示例来源:origin: org.dom4j/dom4j

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in) throws DocumentException, IOException,
    XmlPullParserException {
  return read(createReader(in));
}

代码示例来源:origin: org.dom4j/dom4j

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * @param systemID
 *            is the URI for the input
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in, String systemID)
    throws DocumentException, IOException, XmlPullParserException {
  return read(createReader(in), systemID);
}

代码示例来源:origin: maven/dom4j

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in) throws DocumentException, IOException,
    XmlPullParserException {
  return read(createReader(in));
}

代码示例来源:origin: org.dom4j/org.motechproject.org.dom4j

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in) throws DocumentException, IOException,
    XmlPullParserException {
  return read(createReader(in));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in) throws DocumentException, IOException,
    XmlPullParserException {
  return read(createReader(in));
}

代码示例来源:origin: dom4j/dom4j

/**
 * <p>
 * Reads a Document from the given <code>URL</code>
 * </p>
 * 
 * @param url
 *            <code>URL</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(URL url) throws DocumentException, IOException,
    XmlPullParserException {
  String systemID = url.toExternalForm();
  return read(createReader(url.openStream()), systemID);
}

代码示例来源:origin: dom4j/dom4j

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in) throws DocumentException, IOException,
    XmlPullParserException {
  return read(createReader(in));
}

代码示例来源:origin: org.dom4j/org.motechproject.org.dom4j

/**
 * <p>
 * Reads a Document from the given <code>URL</code>
 * </p>
 * 
 * @param url
 *            <code>URL</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(URL url) throws DocumentException, IOException,
    XmlPullParserException {
  String systemID = url.toExternalForm();
  return read(createReader(url.openStream()), systemID);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j

/**
 * <p>
 * Reads a Document from the given <code>URL</code>
 * </p>
 * 
 * @param url
 *            <code>URL</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(URL url) throws DocumentException, IOException,
    XmlPullParserException {
  String systemID = url.toExternalForm();
  return read(createReader(url.openStream()), systemID);
}

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in) throws DocumentException, IOException,
    XmlPullParserException {
  return read(createReader(in));
}

代码示例来源:origin: org.jenkins-ci.dom4j/dom4j

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in) throws DocumentException, IOException,
    XmlPullParserException {
  return read(createReader(in));
}

代码示例来源:origin: dom4j/dom4j

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * @param systemID
 *            is the URI for the input
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in, String systemID)
    throws DocumentException, IOException, XmlPullParserException {
  return read(createReader(in), systemID);
}

代码示例来源:origin: org.dom4j/com.springsource.org.dom4j

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in) throws DocumentException, IOException,
    XmlPullParserException {
  return read(createReader(in));
}

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * <p>
 * Reads a Document from the given <code>URL</code>
 * </p>
 * 
 * @param url
 *            <code>URL</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(URL url) throws DocumentException, IOException,
    XmlPullParserException {
  String systemID = url.toExternalForm();
  return read(createReader(url.openStream()), systemID);
}

代码示例来源:origin: org.jenkins-ci.dom4j/dom4j

/**
 * <p>
 * Reads a Document from the given <code>URL</code>
 * </p>
 * 
 * @param url
 *            <code>URL</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(URL url) throws DocumentException, IOException,
    XmlPullParserException {
  String systemID = url.toExternalForm();
  return read(createReader(url.openStream()), systemID);
}

代码示例来源:origin: maven/dom4j

/**
 * <p>
 * Reads a Document from the given <code>URL</code>
 * </p>
 * 
 * @param url
 *            <code>URL</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(URL url) throws DocumentException, IOException,
    XmlPullParserException {
  String systemID = url.toExternalForm();
  return read(createReader(url.openStream()), systemID);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * @param systemID
 *            is the URI for the input
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in, String systemID)
    throws DocumentException, IOException, XmlPullParserException {
  return read(createReader(in), systemID);
}

代码示例来源:origin: apache/servicemix-bundles

/**
 * <p>
 * Reads a Document from the given stream
 * </p>
 * 
 * @param in
 *            <code>InputStream</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(InputStream in) throws DocumentException, IOException,
    XmlPullParserException {
  return read(createReader(in));
}

代码示例来源:origin: org.dom4j/com.springsource.org.dom4j

/**
 * <p>
 * Reads a Document from the given <code>URL</code>
 * </p>
 * 
 * @param url
 *            <code>URL</code> to read from.
 * 
 * @return the newly created Document instance
 * 
 * @throws DocumentException
 *             if an error occurs during parsing.
 * @throws IOException
 *             DOCUMENT ME!
 * @throws XmlPullParserException
 *             DOCUMENT ME!
 */
public Document read(URL url) throws DocumentException, IOException,
    XmlPullParserException {
  String systemID = url.toExternalForm();
  return read(createReader(url.openStream()), systemID);
}

相关文章