Пример #1
0
  public ElementNode parseFormat(String text)
      throws DocumentException, UnsupportedEncodingException {
    Document document = Dom4JReader.getFormatDocument(text);

    return parse(document);
  }
Пример #2
0
  public ElementNode parseFormat(File file)
      throws DocumentException, IOException, UnsupportedEncodingException {
    Document document = Dom4JReader.getFormatDocument(file);

    return parse(document);
  }
Пример #3
0
  public ElementNode parseFormat(InputStream inputStream)
      throws DocumentException, IOException, UnsupportedEncodingException {
    Document document = Dom4JReader.getFormatDocument(inputStream);

    return parse(document);
  }