Class XmlHeaderAwareReader

java.lang.Object
java.io.Reader
com.thoughtworks.xstream.core.util.XmlHeaderAwareReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public final class XmlHeaderAwareReader extends Reader
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.
Since:
1.3