public class AbstractInputStreamReader extends Object implements FileReader
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractInputStreamReader(InputStream in) |
protected |
AbstractInputStreamReader(InputStream in,
boolean validateAllRead) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocateByteBuffer(int size)
Allocates a byte buffer.
|
void |
close() |
protected static InputStream |
newAdapter(FileReader in) |
int |
read(ByteBuffer data) |
protected AbstractInputStreamReader(InputStream in, boolean validateAllRead) throws IOException
IOExceptionprotected AbstractInputStreamReader(InputStream in) throws IOException
IOExceptionpublic int read(ByteBuffer data) throws IOException
read in interface FileReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic ByteBuffer allocateByteBuffer(int size)
FileReaderallocateByteBuffer in interface FileReadersize - The size of the buffer.protected static InputStream newAdapter(FileReader in)
Copyright © 2016. All rights reserved.