Class ByteOrderMarkFilterInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.dd.plist.ByteOrderMarkFilterInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
An input stream that filters the Byte Order Mark from the input.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate booleanFields inherited from class FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionByteOrderMarkFilterInputStream(InputStream in, boolean closeStream) Creates aByteOrderMarkFilterInputStreaminstance. -
Method Summary
Methods inherited from class FilterInputStream
available, mark, markSupported, read, read, reset, skipMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
closeStream
private final boolean closeStream -
readingBom
private boolean readingBom -
consumedBytes
-
-
Constructor Details
-
ByteOrderMarkFilterInputStream
Creates aByteOrderMarkFilterInputStreaminstance.- Parameters:
in- the underlying input stream.closeStream- If set tofalsethe original input stream is not closed when the filtered stream is closed.
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-