TrueZIP Driver ZIP 7.0

de.schlichtherle.truezip.zip
Class ZipFile.DefaultReadOnlyFilePool

java.lang.Object
  extended by de.schlichtherle.truezip.zip.ZipFile.DefaultReadOnlyFilePool
All Implemented Interfaces:
Pool<ReadOnlyFile,IOException>
Enclosing class:
ZipFile

private static class ZipFile.DefaultReadOnlyFilePool
extends Object
implements Pool<ReadOnlyFile,IOException>

A pool which allocates DefaultReadOnlyFile objects for the provided to its constructor.


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schlichtherle.truezip.util.Pool
Pool.Releasable<E extends Exception>
 
Field Summary
(package private)  File file
           
 
Constructor Summary
ZipFile.DefaultReadOnlyFilePool(File file)
           
ZipFile.DefaultReadOnlyFilePool(String name)
           
 
Method Summary
 ReadOnlyFile allocate()
           
 void release(ReadOnlyFile rof)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

final File file
Constructor Detail

ZipFile.DefaultReadOnlyFilePool

public ZipFile.DefaultReadOnlyFilePool(File file)

ZipFile.DefaultReadOnlyFilePool

public ZipFile.DefaultReadOnlyFilePool(String name)
Method Detail

allocate

public ReadOnlyFile allocate()
                      throws IOException
Specified by:
allocate in interface Pool<ReadOnlyFile,IOException>
Throws:
IOException

release

public void release(ReadOnlyFile rof)
             throws IOException
Specified by:
release in interface Pool<ReadOnlyFile,IOException>
Throws:
IOException

TrueZIP Driver ZIP 7.0

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