Package de.muehlencord.shared.util.file
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 java.io.PushbackInputStream
buf, posFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new BOMStripperInputStream which removes the leading BOM from an input stream -
Method Summary
Methods inherited from class java.io.PushbackInputStream
available, close, mark, markSupported, read, read, reset, skip, unread, unread, unreadMethods inherited from class java.io.FilterInputStream
readMethods inherited from class java.io.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
-