public class NIOBufferInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.ByteBuffer |
buffer |
protected java.nio.channels.Channel |
channel |
static java.lang.String |
REVISION |
| Constructor and Description |
|---|
NIOBufferInputStream(java.nio.ByteBuffer buffer)
Construct a NIOBufferInputStream with the given buffer
|
NIOBufferInputStream(java.nio.ByteBuffer buffer,
java.nio.channels.Channel channel)
Construct a NIOBufferInputStream with the given buffer and the
given channel.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported()
mark is *not* supported.
|
int |
read() |
public static final java.lang.String REVISION
protected java.nio.ByteBuffer buffer
protected java.nio.channels.Channel channel
public NIOBufferInputStream(java.nio.ByteBuffer buffer)
buffer - the buffer to be wrappedpublic NIOBufferInputStream(java.nio.ByteBuffer buffer,
java.nio.channels.Channel channel)
buffer - the buffer to be wrappedchannel - the channel the buffer is associated to.public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStreampublic boolean markSupported()
markSupported in class java.io.InputStreamCopyright © 2001-2017 Jalios SA. All Rights Reserved.