final public class XmlHeaderAwareReader extends Reader(Code)
A
Reader that evaluates the XML header. It selects its encoding based on the encoding read with the XML
header of the provided
InputStream . The default encoding is UTF-8 and the version is 1.0 if the
stream does not contain an XML header or the attributes are not set within the header.
author: Jörg Schaible since: 1.3
Constructs an XmlHeaderAwareReader.
Parameters: in - the InputStream throws: UnsupportedEncodingException - if the encoding is not supported throws: IOException - occurred while reading the XML header since: 1.3