org.at4j.zip
Class ZipEntryCollaborator

java.lang.Object
  extended by org.at4j.archive.ArchiveEntryCollaborator<ZipEntry,ZipDirectoryEntry>
      extended by org.at4j.zip.ZipEntryCollaborator
All Implemented Interfaces:
RandomAccessCloseObserver

public class ZipEntryCollaborator
extends ArchiveEntryCollaborator<ZipEntry,ZipDirectoryEntry>

This collaborator object is used by a ZipEntry:s to access the file object that its parent ZipFile objects is built on.

This is part of the ZipFile implementation. Clients should never have to bother with this object.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
ZipEntryCollaborator(RandomlyAccessibleFile zipFile, Map<AbsoluteLocation,ZipEntry> entryMap)
          Create a new collaborator.
 
Method Summary
 
Methods inherited from class org.at4j.archive.ArchiveEntryCollaborator
close, finalize, getEntry, notifyClosed, openRandomAccess, openStream
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipEntryCollaborator

public ZipEntryCollaborator(RandomlyAccessibleFile zipFile,
                            Map<AbsoluteLocation,ZipEntry> entryMap)
Create a new collaborator.

Parameters:
zipFile - The Zip file. This file must be locked for reading while this object is alive.
entryMap - A map containing all of the entries in the Zip file. This object will use the Map instance that is supplied in the argument (i.e. not make a defensive copy of it). The map does not have to contain all Zip entries when this object is created, but it must do so before any client starts to use the Zip file.