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
Stream which removes the leading BOM from an input stream
- Author:
- Joern Muehlencord (joern@muehlencord.de)
-
Field Summary
FieldsFields inherited from class PushbackInputStream
buf, posFields inherited from class FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new BOMStripperInputStream which removes the leading BOM from an input stream -
Method Summary
Methods inherited from class PushbackInputStream
available, close, mark, markSupported, read, read, reset, skip, unread, unread, unreadMethods inherited from class FilterInputStream
readMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
BOMS
protected static final int[][] BOMSList of all possible BOMS- See Also:
-
-
Constructor Details
-
BOMStripperInputStream
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
-