org.apache.commons.collections.buffer

Class AbstractBufferDecorator

public abstract class AbstractBufferDecorator extends AbstractCollectionDecorator implements Buffer

Decorates another Buffer to provide additional behaviour.

Methods are forwarded directly to the decorated buffer.

Since: Commons Collections 3.0

Version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $

Author: Stephen Colebourne

Constructor Summary
protected AbstractBufferDecorator()
Constructor only used in deserialization, do not use otherwise.
protected AbstractBufferDecorator(Buffer buffer)
Constructor that wraps (not copies).
Method Summary
Objectget()
protected BuffergetBuffer()
Gets the buffer being decorated.
Objectremove()

Constructor Detail

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

Throws: IllegalArgumentException if list is null

Method Detail

get

public Object get()

getBuffer

protected Buffer getBuffer()
Gets the buffer being decorated.

Returns: the decorated buffer

remove

public Object remove()
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.