Package migratedb.v1.core.internal.util
Class BomStrippingReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- migratedb.v1.core.internal.util.BomStrippingReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class BomStrippingReader extends FilterReader
Reader that strips the BOM from every position in a stream.
-
-
Field Summary
-
Fields inherited from class java.io.FilterReader
in
-
-
Constructor Summary
Constructors Constructor Description BomStrippingReader(Reader in)Creates a new BOM-stripping reader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()-
Methods inherited from class java.io.FilterReader
close, mark, markSupported, read, ready, reset, skip
-
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
-
-
-
Constructor Detail
-
BomStrippingReader
public BomStrippingReader(Reader in)
Creates a new BOM-stripping reader.- Parameters:
in- a Reader object providing the underlying stream.- Throws:
NullPointerException- ifinisnull
-
-
Method Detail
-
read
public int read() throws IOException- Overrides:
readin classFilterReader- Throws:
IOException
-
-