org.entityfs.util.jar
Class EntityIteratorToJarEntryInfoIteratorAdapter

java.lang.Object
  extended by org.entityfs.util.zip.EntityIteratorToZipEntryInfoIteratorAdapter
      extended by org.entityfs.util.jar.EntityIteratorToJarEntryInfoIteratorAdapter
All Implemented Interfaces:
Iterator<ZipEntryInfo>

public class EntityIteratorToJarEntryInfoIteratorAdapter
extends EntityIteratorToZipEntryInfoIteratorAdapter

This is an extension of EntityIteratorToZipEntryInfoIteratorAdapter that creates JarEntryInfoImpl objects. It is used by JarCreator.

Since:
1.0
Author:
Karl Gustafsson
See Also:
JarCreator, JarEntryInfoImpl
In_jar:
entityfs-util

Constructor Summary
EntityIteratorToJarEntryInfoIteratorAdapter(DirectoryView baseDir, Iterator<? extends EntityView> adapted)
          Create an EntityIteratorToJarEntryInfoIteratorAdapter that will create jar entries with a location relative to the supplied directory.
EntityIteratorToJarEntryInfoIteratorAdapter(DirectoryView baseDir, Iterator<? extends EntityView> adapted, ZipEntryInfoProvider zeip)
          Create an EntityIteratorToJarEntryInfoIteratorAdapter that will create jar entries with a location relative to the supplied directory.
 
Method Summary
protected  ZipEntryInfo createZipEntryInfo(EntityView ev)
          Override inherited method to create JarEntryInfoImpl instances instead.
 
Methods inherited from class org.entityfs.util.zip.EntityIteratorToZipEntryInfoIteratorAdapter
getBaseDir, getExtraInfoProvider, hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityIteratorToJarEntryInfoIteratorAdapter

public EntityIteratorToJarEntryInfoIteratorAdapter(DirectoryView baseDir,
                                                   Iterator<? extends EntityView> adapted)
Create an EntityIteratorToJarEntryInfoIteratorAdapter that will create jar entries with a location relative to the supplied directory.

Parameters:
baseDir - The base directory. File names for the files in the Jar archive will be created relative to this directory.
adapted - The adapted iterator.

EntityIteratorToJarEntryInfoIteratorAdapter

public EntityIteratorToJarEntryInfoIteratorAdapter(DirectoryView baseDir,
                                                   Iterator<? extends EntityView> adapted,
                                                   ZipEntryInfoProvider zeip)
Create an EntityIteratorToJarEntryInfoIteratorAdapter that will create jar entries with a location relative to the supplied directory.

Parameters:
baseDir - The base directory. File names for the files in the Jar archive will be created relative to this directory.
adapted - The adapted iterator.
zeip - A provider for extra JarEntryInfo information.
Method Detail

createZipEntryInfo

protected ZipEntryInfo createZipEntryInfo(EntityView ev)
Override inherited method to create JarEntryInfoImpl instances instead.

Overrides:
createZipEntryInfo in class EntityIteratorToZipEntryInfoIteratorAdapter
Parameters:
ev - The entity view.
Returns:
A JarEntryInfoImpl instance.