TrueZIP Kernel 7.0-rc1

de.schlichtherle.truezip.socket
Class IOCache.OutputBufferPool

java.lang.Object
  extended by de.schlichtherle.truezip.socket.IOCache.OutputBufferPool
All Implemented Interfaces:
Pool<IOCache.Buffer,IOException>
Direct Known Subclasses:
IOCache.WriteBackOutputBufferPool, IOCache.WriteThroughOutputBufferPool
Enclosing class:
IOCache

private abstract class IOCache.OutputBufferPool
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.OutputBufferPool()
           
 
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.OutputBufferPool

private IOCache.OutputBufferPool()
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-rc1

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