/** * Creates a Simple XML parser object. * Call go(BufferedReader) immediately after creation. */ private SimpleXMLParser(final SimpleXMLDocHandler doc, final SimpleXMLDocHandlerComment comment, final boolean html) { this.doc = doc; this.comment = comment; this.html = html; if (html) { this.newLineHandler = new HTMLNewLineHandler(); } else { this.newLineHandler = new NeverNewLineHandler(); } stack = new Stack<Integer>(); state = html ? TEXT : UNKNOWN; }
/** * Creates a Simple XML parser object. * Call go(BufferedReader) immediately after creation. */ private SimpleXMLParser(final SimpleXMLDocHandler doc, final SimpleXMLDocHandlerComment comment, final boolean html) { this.doc = doc; this.comment = comment; this.html = html; if (html) { this.newLineHandler = new HTMLNewLineHandler(); } else { this.newLineHandler = new NeverNewLineHandler(); } stack = new Stack<Integer>(); state = html ? TEXT : UNKNOWN; }