public abstract class AbstractBufferArray<E> extends Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractBufferArray(Class<E> clazz) |
Modifier and Type | Method and Description |
---|---|
void |
add(E byteBuffer) |
void |
add(E byteBuffer,
int restorePosition,
int restoreLimit) |
E[] |
getArray() |
int |
getInitialBufferSize(int idx) |
int |
getInitialLimit(int idx) |
int |
getInitialPosition(int idx) |
protected abstract int |
getLimit(E buffer) |
protected abstract int |
getPosition(E buffer) |
void |
recycle() |
void |
reset() |
void |
restore() |
protected abstract void |
setPositionLimit(E buffer,
int position,
int limit) |
int |
size() |
protected abstract void setPositionLimit(E buffer, int position, int limit)
protected abstract int getPosition(E buffer)
protected abstract int getLimit(E buffer)
public void add(E byteBuffer)
public void add(E byteBuffer, int restorePosition, int restoreLimit)
public E[] getArray()
public void restore()
public final int getInitialPosition(int idx)
public int getInitialLimit(int idx)
public final int getInitialBufferSize(int idx)
public int size()
public void reset()
public void recycle()
Copyright © 2017–2021 Oracle Corporation. All rights reserved.