public class UnicodeStream extends InputStream
Constructor and Description |
---|
UnicodeStream(InputStream in,
Charset defaultEncoding)
Construct InputStream, a Reader that detects and skips the BOM in Unicode
files (if present).
|
UnicodeStream(InputStream in,
String defaultEncoding)
Construct UnicodeReader, a Reader that skips the BOM in Unicode files (if
present).
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
Charset |
getEncoding() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] cbuf) |
int |
read(byte[] cbuf,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public UnicodeStream(InputStream in, String defaultEncoding) throws IOException
in
- Input stream.defaultEncoding
- Default encoding to be used if BOM is not found, or
null
to use system default encoding.IOException
- If an I/O error occurs.public UnicodeStream(InputStream in, Charset defaultEncoding) throws IOException
in
- Input stream.defaultEncoding
- Default encoding to be used if BOM is not found, or
null
to use system default encoding.IOException
- If an I/O error occurs.public Charset getEncoding()
public int read(byte[] cbuf, int off, int len) throws IOException
read
in class InputStream
IOException
public int read(byte[] cbuf) throws IOException
read
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.