public class MappedReader extends Reader
| Constructor and Description |
|---|
MappedReader(InputStream is,
Encoding encoding)
Create a MappedReader
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Encoding |
getEncoding()
The encoding used by this reader.
|
int |
read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array.
|
public MappedReader(InputStream is, Encoding encoding)
is - The underlying byte stream.encoding - The encoding to use.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionReader.close()public Encoding getEncoding()
public int read(char[] cbuf,
int off,
int len)
throws IOException
read in class Readercbuf - Destination bufferoff - Offset at which to start storing characterslen - Maximum number of characters to readIOException - If an I/O error occursIndexOutOfBoundsExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.