| java.lang.Object sample.DocumentTracer
DocumentTracer | public class DocumentTracer (Code) | | A simple document tracer program to show the use of the pull parsing
API. This program is useful for seeing the contents of event objects
returned by a pull parser implementation.
author: Andy Clark version: $Id$ |
printWithIndent | protected static void printWithIndent(PrintWriter out, int indent, String s)(Code) | | Prints with the appropriate indent.
|
toString | protected static String toString(XMLEvent event)(Code) | | Returns a string representation of the event type.
|
trace | public static void trace(XMLPullParser parser, String sysid) throws XNIException, IOException(Code) | | Traces the event callbacks.
Parameters: parser - The pull parser to use. Parameters: sysid - The system id of the document to read. |
|
|