@InterfaceAudience.Private public class InputBuffer extends Object implements Closeable
Constructor and Description |
---|
InputBuffer(BufferType type,
int inputSize) |
InputBuffer(byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
byte[] |
array() |
int |
capacity() |
void |
close() |
ByteBuffer |
getByteBuffer() |
BufferType |
getType() |
int |
length() |
int |
position() |
int |
position(int pos) |
int |
remaining() |
void |
rewind(int startOffset,
int length) |
public InputBuffer(BufferType type, int inputSize) throws IOException
IOException
public InputBuffer(byte[] bytes)
public BufferType getType()
public ByteBuffer getByteBuffer()
public int length()
public void rewind(int startOffset, int length)
public int remaining()
public int position()
public int position(int pos)
public int capacity()
public byte[] array()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.