Class BOMStripperInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.PushbackInputStream
de.muehlencord.shared.util.file.BOMStripperInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class BOMStripperInputStream extends PushbackInputStream
Stream which removes the leading BOM from an input stream
Author:
Joern Muehlencord (joern@muehlencord.de)
  • Field Details

  • Constructor Details

    • BOMStripperInputStream

      public BOMStripperInputStream(InputStream is) throws IOException
      Creates a new BOMStripperInputStream which removes the leading BOM from an input stream
      Parameters:
      is - the input stream to read the data from
      Throws:
      IOException - if the BOM cannot be loaded