public class DirectBufferInputStream
extends java.io.InputStream
InputStream that wraps a DirectBuffer.| Constructor and Description |
|---|
DirectBufferInputStream() |
DirectBufferInputStream(DirectBuffer buffer) |
DirectBufferInputStream(DirectBuffer buffer,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
DirectBuffer |
buffer()
The underlying buffer being wrapped.
|
int |
length()
The length of the underlying buffer to use
|
boolean |
markSupported() |
int |
offset()
The offset within the underlying buffer at which to start.
|
int |
read() |
int |
read(byte[] dstBytes,
int dstOffset,
int length) |
long |
skip(long n) |
void |
wrap(DirectBuffer buffer) |
void |
wrap(DirectBuffer buffer,
int offset,
int length) |
public DirectBufferInputStream()
public DirectBufferInputStream(DirectBuffer buffer)
public DirectBufferInputStream(DirectBuffer buffer, int offset, int length)
public void wrap(DirectBuffer buffer)
public void wrap(DirectBuffer buffer, int offset, int length)
public int offset()
public int length()
public DirectBuffer buffer()
public boolean markSupported()
markSupported in class java.io.InputStreampublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] dstBytes,
int dstOffset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionCopyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.