| java.lang.Object com.rimfaxe.xml.xmlreader.ParseByteStream
ParseByteStream | class ParseByteStream implements ParseSource(Code) | | An XML byte stream that has been parsed into a DOM tree.
Just like ParseCharStream except handle Unicode encoding of byte stream.
Use rules in
http://www.w3.org/TR/2000/REC-xml-20001006#sec-guessing to guess
encoding -- if encoding declaration is different, restart parsing.
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 Also: GNU Lesser General Public License version: $Date: 2003/01/09 01:05:38 $ $Revision: 1.3 $ author: Eamonn O'Brien-Strain |
ParseByteStream | public ParseByteStream(String systemId, InputStream istream, ParseLog log, String guessedEncoding, ParseHandler handler) throws ParseException, IOException(Code) | | Parse XML document from byte stream, converting to Unicode
characters as specifed by the initial byte-order-mark.
Parameters: istream - is the source of bytes and must support mark so thatwe can peek ahead at its first two bytes |
getLineNumber | public int getLineNumber()(Code) | | Last line number read by parser.
|
|
|