com.dyuproject.util.xml
Class XMLParser
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLParser
public XMLParser()
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.