Class UnicodeReader

java.lang.Object
java.io.Reader
net.solarnetwork.io.UnicodeReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable

public class UnicodeReader extends Reader
Reader that can detect a Unicode BOM. Adapted from Google Data API.
Since:
1.35
Version:
1.0
Author:
matt
  • Constructor Details

    • UnicodeReader

      public UnicodeReader(InputStream in, String defaultEncoding) throws IOException
      Construct UnicodeReader.
      Parameters:
      in - Input stream.
      defaultEncoding - Default encoding to be used if BOM is not found, or null to use system default encoding.
      Throws:
      IOException - If an I/O error occurs.
  • Method Details