org.entityfs.util.jar
Class EntityIteratorToJarEntryInfoIteratorAdapter
java.lang.Object
org.entityfs.util.zip.EntityIteratorToZipEntryInfoIteratorAdapter
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.