Package com.dd.plist
Class ByteOrderMarkFilterInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.dd.plist.ByteOrderMarkFilterInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
class ByteOrderMarkFilterInputStream extends java.io.FilterInputStreamAn input stream that filters the Byte Order Mark from the input.
-
-
Field Summary
Fields Modifier and Type Field Description private booleancloseStreamprivate java.util.Queue<java.lang.Integer>consumedBytesprivate booleanreadingBom
-
Constructor Summary
Constructors Constructor Description ByteOrderMarkFilterInputStream(java.io.InputStream in, boolean closeStream)Creates aByteOrderMarkFilterInputStreaminstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()-
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, reset, skip
-
-
-
-
Constructor Detail
-
ByteOrderMarkFilterInputStream
public ByteOrderMarkFilterInputStream(java.io.InputStream in, boolean closeStream)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 Detail
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterInputStream- Throws:
java.io.IOException
-
-