Class BOMReader

java.lang.Object
java.io.Reader
org.dellroad.stuff.io.BOMReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public class BOMReader extends Reader
A Reader that wraps an InputStream, detects and strips the byte order mark, and then converts bytes into characters accordingly.

If no byte order mark is found, the input is implicitly assumed to be in some default character encoding.

The default character encoding and the action to take on malformed input are configurable.

See Also: