public class BOMReader extends Reader
MS Excel places such BOM in UTF-8 encoded CSV files (which is invalid). Therefore such bytes have to be removed.
Constructor and Description |
---|
BOMReader(Reader reader)
Creates a new reader wrapping the given one.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read(char[] cbuf,
int off,
int len) |
boolean |
ready() |
public BOMReader(Reader reader)
reader
- the reader to wrap (and filter)public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public boolean ready() throws IOException
ready
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Copyright © 2018. All rights reserved.