org.apache.mina.filter.buffer
Class IoBufferLazyInitializer

java.lang.Object
  extended by org.apache.mina.util.LazyInitializer<IoBuffer>
      extended by org.apache.mina.filter.buffer.IoBufferLazyInitializer

public class IoBufferLazyInitializer
extends LazyInitializer<IoBuffer>

An LazyInitializer implementation that initializes an IoBuffer only when needed.

Since:
MINA 2.0.0-M2
Version:
$Rev: 685705 $, $Date: 2008-08-14 00:16:46 +0200 (Do, 14 Aug 2008) $
Author:
The Apache MINA Project (dev@mina.apache.org)

Constructor Summary
IoBufferLazyInitializer(int bufferSize)
          Constructor which sets allocated buffer size to bufferSize.
 
Method Summary
 IoBuffer init()
          Initializes the value.
 
Methods inherited from class org.apache.mina.util.LazyInitializer
get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IoBufferLazyInitializer

public IoBufferLazyInitializer(int bufferSize)
Constructor which sets allocated buffer size to bufferSize.

Parameters:
bufferSize - the new buffer size
Method Detail

init

public IoBuffer init()
Initializes the value.

Specified by:
init in class LazyInitializer<IoBuffer>
Returns:
the initialized value


Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.