com.hp.hpl.sparta
Class Parser

java.lang.Object
  |
  +--com.hp.hpl.sparta.Parser

public class Parser
extends java.lang.Object

Provides a simple interface to the XML parser. This is an example of the Facade design pattern.

Copyright (C) 2002 Hewlett-Packard Company. This file is part of Sparta, an XML Parser, DOM, and XPath library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Version:
$Date: 2002/08/19 05:03:57 $ $Revision: 1.1.1.1 $
Author:
Eamonn O'Brien-Strain, Sergio Marti
See Also:
GNU Lesser General Public License

Constructor Summary
Parser()
           
 
Method Summary
static Document parse(byte[] xml)
           
static void parse(byte[] xml, ParseHandler ph)
           
static Document parse(char[] xml)
          Fastest parser method takes a character array containing an XML message
static void parse(char[] xml, ParseHandler ph)
           
static Document parse(java.io.File file)
           
static void parse(java.io.File file, ParseHandler ph)
           
static Document parse(java.io.File file, ParseLog log)
           
static void parse(java.io.File file, ParseLog log, ParseHandler ph)
           
static Document parse(java.lang.String xml)
           
static Document parse(java.lang.String systemId, java.io.InputStream istream)
           
static void parse(java.lang.String systemId, java.io.InputStream istream, ParseHandler ph)
           
static Document parse(java.lang.String systemId, java.io.InputStream istream, ParseLog log)
           
static void parse(java.lang.String systemId, java.io.InputStream istream, ParseLog log, ParseHandler ph)
           
static Document parse(java.lang.String systemId, java.io.InputStream istream, ParseLog log, java.lang.String guessedEncoding)
           
static void parse(java.lang.String systemId, java.io.InputStream istream, ParseLog log, java.lang.String guessedEncoding, ParseHandler ph)
           
static void parse(java.lang.String xml, ParseHandler ph)
           
static Document parse(java.lang.String systemId, java.io.Reader reader)
           
static void parse(java.lang.String systemId, java.io.Reader reader, ParseHandler ph)
           
static Document parse(java.lang.String systemId, java.io.Reader reader, ParseLog log)
           
static void parse(java.lang.String systemId, java.io.Reader reader, ParseLog log, ParseHandler ph)
           
static Document parse(java.lang.String systemId, java.io.Reader reader, ParseLog log, java.lang.String encoding)
           
static void parse(java.lang.String systemId, java.io.Reader reader, ParseLog log, java.lang.String encoding, ParseHandler ph)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

parse

public static Document parse(java.lang.String systemId,
                             java.io.Reader reader)
                      throws ParseException,
                             java.io.IOException

parse

public static Document parse(java.lang.String systemId,
                             java.io.Reader reader,
                             ParseLog log)
                      throws ParseException,
                             java.io.IOException

parse

public static Document parse(java.io.File file,
                             ParseLog log)
                      throws ParseException,
                             java.io.IOException

parse

public static Document parse(java.io.File file)
                      throws ParseException,
                             java.io.IOException

parse

public static Document parse(java.lang.String xml)
                      throws ParseException,
                             java.io.IOException

parse

public static Document parse(char[] xml)
                      throws ParseException,
                             java.io.IOException
Fastest parser method takes a character array containing an XML message

parse

public static Document parse(byte[] xml)
                      throws ParseException,
                             java.io.IOException

parse

public static Document parse(java.lang.String systemId,
                             java.io.Reader reader,
                             ParseLog log,
                             java.lang.String encoding)
                      throws ParseException,
                             EncodingMismatchException,
                             java.io.IOException

parse

public static Document parse(java.lang.String systemId,
                             java.io.InputStream istream,
                             ParseLog log)
                      throws ParseException,
                             java.io.IOException

parse

public static Document parse(java.lang.String systemId,
                             java.io.InputStream istream)
                      throws ParseException,
                             java.io.IOException

parse

public static Document parse(java.lang.String systemId,
                             java.io.InputStream istream,
                             ParseLog log,
                             java.lang.String guessedEncoding)
                      throws ParseException,
                             java.io.IOException

parse

public static void parse(java.lang.String systemId,
                         java.io.Reader reader,
                         ParseHandler ph)
                  throws ParseException,
                         java.io.IOException

parse

public static void parse(java.lang.String systemId,
                         java.io.Reader reader,
                         ParseLog log,
                         ParseHandler ph)
                  throws ParseException,
                         java.io.IOException

parse

public static void parse(java.io.File file,
                         ParseLog log,
                         ParseHandler ph)
                  throws ParseException,
                         java.io.IOException

parse

public static void parse(java.io.File file,
                         ParseHandler ph)
                  throws ParseException,
                         java.io.IOException

parse

public static void parse(java.lang.String xml,
                         ParseHandler ph)
                  throws ParseException,
                         java.io.IOException

parse

public static void parse(char[] xml,
                         ParseHandler ph)
                  throws ParseException,
                         java.io.IOException

parse

public static void parse(byte[] xml,
                         ParseHandler ph)
                  throws ParseException,
                         java.io.IOException

parse

public static void parse(java.lang.String systemId,
                         java.io.InputStream istream,
                         ParseLog log,
                         ParseHandler ph)
                  throws ParseException,
                         java.io.IOException

parse

public static void parse(java.lang.String systemId,
                         java.io.InputStream istream,
                         ParseHandler ph)
                  throws ParseException,
                         java.io.IOException

parse

public static void parse(java.lang.String systemId,
                         java.io.InputStream istream,
                         ParseLog log,
                         java.lang.String guessedEncoding,
                         ParseHandler ph)
                  throws ParseException,
                         java.io.IOException

parse

public static void parse(java.lang.String systemId,
                         java.io.Reader reader,
                         ParseLog log,
                         java.lang.String encoding,
                         ParseHandler ph)
                  throws ParseException,
                         EncodingMismatchException,
                         java.io.IOException