com.hp.hpl.sparta.ParseSource Maven / Gradle / Ivy
package com.hp.hpl.sparta;
/** A source of XML that has been parsed.
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.
@see GNU Lesser General Public License
@version $Date: 2003/07/17 23:58:40 $ $Revision: 1.2 $
@author Eamonn O'Brien-Strain
@author Sergio Marti
*/
public interface ParseSource {
String toString();
String getSystemId();
/** Last line number read by parser. */
int getLineNumber();
ParseLog DEFAULT_LOG = new DefaultLog();
/** The InputStream passed into the constructor must support mark with this
* amount of lookahead.
* new BufferedInputStream(in,ParseSource.MAXLOOKAHEAD)
*/
static public final int MAXLOOKAHEAD = "