org.apache.commons.collections.buffer

Class AbstractBufferDecorator

Implemented Interfaces:
Buffer, Collection
Known Direct Subclasses:
UnmodifiableBuffer

public abstract class AbstractBufferDecorator
extends AbstractCollectionDecorator
implements Buffer

Decorates another Buffer to provide additional behaviour.

Methods are forwarded directly to the decorated buffer.

Version:
$Revision: 1.4 $ $Date: 2004/06/02 21:53:02 $
Author:
Stephen Colebourne
Since:
Commons Collections 3.0

Field Summary

Fields inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator

collection

Constructor Summary

AbstractBufferDecorator()
Constructor only used in deserialization, do not use otherwise.
AbstractBufferDecorator(Buffer buffer)
Constructor that wraps (not copies).

Method Summary

Object
get()
protected Buffer
getBuffer()
Gets the buffer being decorated.
Object
remove()

Methods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator

add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString

Constructor Details

AbstractBufferDecorator

protected AbstractBufferDecorator()
Constructor only used in deserialization, do not use otherwise.
Since:
Commons Collections 3.1

AbstractBufferDecorator

protected AbstractBufferDecorator(Buffer buffer)
Constructor that wraps (not copies).
Parameters:
buffer - the buffer to decorate, must not be null

Method Details

get

public Object get()
Specified by:
get in interface Buffer

getBuffer

protected Buffer getBuffer()
Gets the buffer being decorated.
Returns:
the decorated buffer

remove

public Object remove()
Specified by:
remove in interface Buffer

Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.