TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.socket
Class IOCache.InputBufferPool

java.lang.Object
  extended by de.schlichtherle.truezip.socket.IOCache.InputBufferPool
All Implemented Interfaces:
Pool<IOCache.Buffer,IOException>
Enclosing class:
IOCache

private final class IOCache.InputBufferPool
extends Object
implements Pool<IOCache.Buffer,IOException>


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schlichtherle.truezip.util.Pool
Pool.Releasable<E extends Exception>
 
Constructor Summary
private IOCache.InputBufferPool()
           
 
Method Summary
 IOCache.Buffer allocate()
          Allocates a resource from this pool.
 void release(IOCache.Buffer buffer)
          Releases a previously allocated resource to this pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOCache.InputBufferPool

private IOCache.InputBufferPool()
Method Detail

allocate

public IOCache.Buffer allocate()
                        throws IOException
Description copied from interface: Pool
Allocates a resource from this pool.

Specified by:
allocate in interface Pool<IOCache.Buffer,IOException>
Returns:
A resource.
Throws:
IOException

release

public void release(IOCache.Buffer buffer)
             throws IOException
Description copied from interface: Pool
Releases a previously allocated resource to this pool. Implementations may throw an IllegalArgumentException or an IllegalStateException upon the conditions explained below.

Specified by:
release in interface Pool<IOCache.Buffer,IOException>
Parameters:
buffer - a resource.
Throws:
IOException

TrueZIP Kernel 7.0-rc2

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.