public final class InputStreamChannel extends Object implements ReadableByteChannel
| Constructor and Description |
|---|
InputStreamChannel(InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isEOF() |
boolean |
isOpen() |
int |
read(ByteBuffer buffer) |
public InputStreamChannel(InputStream is)
public boolean isEOF()
public int read(ByteBuffer buffer) throws IOException
read in interface ReadableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2021. All rights reserved.