com.dyuproject.util.xml
Class XMLParser

java.lang.Object
  extended by com.dyuproject.util.xml.XMLParser

public final class XMLParser
extends Object

A simple XML parser that starts parsing right away and validates along the way.

Author:
David Yu
Date created:
Sep 17, 2008

Constructor Summary
XMLParser()
           
 
Method Summary
static void parse(InputStreamReader reader, LazyHandler handler, boolean includeInnerText)
          Lazily parses the given reader using the default buffer size __defaultBufferSize.
static void parse(InputStreamReader reader, LazyHandler handler, boolean includeInnerText, int bufferSize)
          Lazily parses the given reader.
static void setDefaultBufferSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLParser

public XMLParser()
Method Detail

setDefaultBufferSize

public static void setDefaultBufferSize(int size)

parse

public static void parse(InputStreamReader reader,
                         LazyHandler handler,
                         boolean includeInnerText)
                  throws IOException
Lazily parses the given reader using the default buffer size __defaultBufferSize. The parsing can be terminated by the LazyHandler handler at any point.

Throws:
IOException

parse

public static void parse(InputStreamReader reader,
                         LazyHandler handler,
                         boolean includeInnerText,
                         int bufferSize)
                  throws IOException
Lazily parses the given reader. The parsing can be terminated by the LazyHandler handler at any point.

Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.