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

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

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

XPP3Reader.parseDocument介绍

暂无

代码示例

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

/**
 * <p>
 * Reads a Document from the given <code>Reader</code>
 * </p>
 * 
 * @param reader
 *            is the reader 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(Reader reader) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(reader);
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given array of characters
 * </p>
 * 
 * @param text
 *            is the text to parse
 * 
 * @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(char[] text) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(new CharArrayReader(text));
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given <code>Reader</code>
 * </p>
 * 
 * @param reader
 *            is the reader 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(Reader reader) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(reader);
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given array of characters
 * </p>
 * 
 * @param text
 *            is the text to parse
 * 
 * @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(char[] text) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(new CharArrayReader(text));
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given array of characters
 * </p>
 * 
 * @param text
 *            is the text to parse
 * 
 * @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(char[] text) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(new CharArrayReader(text));
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given array of characters
 * </p>
 * 
 * @param text
 *            is the text to parse
 * 
 * @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(char[] text) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(new CharArrayReader(text));
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given array of characters
 * </p>
 * 
 * @param text
 *            is the text to parse
 * 
 * @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(char[] text) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(new CharArrayReader(text));
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given <code>Reader</code>
 * </p>
 * 
 * @param reader
 *            is the reader 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(Reader reader) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(reader);
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given <code>Reader</code>
 * </p>
 * 
 * @param reader
 *            is the reader 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(Reader reader) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(reader);
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given <code>Reader</code>
 * </p>
 * 
 * @param reader
 *            is the reader 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(Reader reader) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(reader);
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given array of characters
 * </p>
 * 
 * @param text
 *            is the text to parse
 * 
 * @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(char[] text) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(new CharArrayReader(text));
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given <code>Reader</code>
 * </p>
 * 
 * @param reader
 *            is the reader 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(Reader reader) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(reader);
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given array of characters
 * </p>
 * 
 * @param text
 *            is the text to parse
 * 
 * @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(char[] text) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(new CharArrayReader(text));
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given <code>Reader</code>
 * </p>
 * 
 * @param reader
 *            is the reader 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(Reader reader) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(reader);
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given <code>Reader</code>
 * </p>
 * 
 * @param reader
 *            is the reader 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(Reader reader) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(reader);
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given array of characters
 * </p>
 * 
 * @param text
 *            is the text to parse
 * 
 * @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(char[] text) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(new CharArrayReader(text));
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given <code>Reader</code>
 * </p>
 * 
 * @param reader
 *            is the reader 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(Reader reader) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(reader);
  return parseDocument();
}

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

/**
 * <p>
 * Reads a Document from the given array of characters
 * </p>
 * 
 * @param text
 *            is the text to parse
 * 
 * @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(char[] text) throws DocumentException, IOException,
    XmlPullParserException {
  getXPPParser().setInput(new CharArrayReader(text));
  return parseDocument();
}

相关文章