Class BomSafeInputStreamWrapper

java.lang.Object
java.io.InputStream
org.gbif.utils.file.BomSafeInputStreamWrapper
All Implemented Interfaces:
Closeable, AutoCloseable

Deprecated.
use org.apache.commons.io.input.BOMInputStream instead
A wrapper for an input stream that removes UTF8 BOM sequences at the start of the file. UTF8 BOMs can cause XML parser to fall over with a "Content is not allowed in prolog" Exception. See:
  • http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4508058
  • https://de.wikipedia.org/wiki/Byte_Order_Mark