Class CharsetDetectingReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Readable

    public class CharsetDetectingReader
    extends Reader

    A reader that understands Unicode Byte Order Marks and can also guess the character set if a BOM is not present and a character set has not been specified.

    Author:
    David B. Bracewell
    • Constructor Detail

      • CharsetDetectingReader

        public CharsetDetectingReader​(InputStream inStream)
        Instantiates a new Espresso reader.
        Parameters:
        inStream - the in stream
      • CharsetDetectingReader

        public CharsetDetectingReader​(InputStream inStream,
                                      Charset defaultCharset)
        Instantiates a new Espresso reader.
        Parameters:
        inStream - the in stream
        defaultCharset - the default charset