public class ByteBufferInputStream extends InputStream
Constructor and Description |
---|
ByteBufferInputStream(ByteBuffer bb) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
static void |
byteBuffer2Record(ByteBuffer bb,
Record record) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
close, mark, markSupported, reset
public ByteBufferInputStream(ByteBuffer bb)
public int read() throws IOException
read
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public static void byteBuffer2Record(ByteBuffer bb, Record record) throws IOException
IOException
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.