Package org.gbif.utils.file
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
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
BomSafeInputStreamWrapper
Deprecated.
-
-
Method Details
-
read
Deprecated.- Specified by:
readin classInputStream- Throws:
IOException
-