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 |
|---|---|
Object |
get()
Gets the next object from the buffer without removing it.
|
protected Buffer |
getBuffer()
Gets the buffer being decorated.
|
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, toStringprotected AbstractBufferDecorator()
protected AbstractBufferDecorator(Buffer buffer)
buffer - the buffer to decorate, must not be nullIllegalArgumentException - if list is nullCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.