public abstract class AbstractBufferDecorator extends AbstractCollectionDecorator implements Buffer
Buffer to provide additional behaviour.
Methods are forwarded directly to the decorated buffer.
collection| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBufferDecorator()
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractBufferDecorator(Buffer buffer)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get()
Gets the next object from the buffer without removing it.
|
protected Buffer |
getBuffer()
Gets the buffer being decorated.
|
java.lang.Object |
remove()
Gets and removes the next object from the buffer.
|
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected AbstractBufferDecorator()
protected AbstractBufferDecorator(Buffer buffer)
buffer - the buffer to decorate, must not be nulljava.lang.IllegalArgumentException - if list is nullCopyright © 2001-2025 Apache Software Foundation. All Rights Reserved.