|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<ZipEntryInfoProvider>
org.entityfs.util.zip.CompoundZipEntryInfoProvider
public class CompoundZipEntryInfoProvider
This is a ZipEntryInfoProvider that adds all information from a list
of other providers. The providers are run in the order that they were added
to the list.
This can be used to use more than one entry info providers when creating a Zip archive.
Adding and removing providers from the list is not a thread safe operation.
ZipCreator,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
CompoundZipEntryInfoProvider()
Create a CompoundZipEntryInfoProvider with a list of providers
that is initially empty. |
|
CompoundZipEntryInfoProvider(Collection<? extends ZipEntryInfoProvider> c)
Create a CompoundZipEntryInfoProvider that initially contains the
provided collection of providers, listed in the order that they are
returned when iterating over the collection. |
|
| Method Summary | |
|---|---|
void |
addProperties(ZipEntry ze,
Object o)
Add properties to the ZipEntry object based on the properties of
the entity. |
CompoundZipEntryInfoProvider |
addProvider(ZipEntryInfoProvider zeip)
Add one provider to the provider list. |
CompoundZipEntryInfoProvider |
addProviders(Collection<? extends ZipEntryInfoProvider> c)
Add a collection of providers to the provider list. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public CompoundZipEntryInfoProvider()
CompoundZipEntryInfoProvider with a list of providers
that is initially empty.
public CompoundZipEntryInfoProvider(Collection<? extends ZipEntryInfoProvider> c)
CompoundZipEntryInfoProvider that initially contains the
provided collection of providers, listed in the order that they are
returned when iterating over the collection.
c - The collection of providers.| Method Detail |
|---|
public void addProperties(ZipEntry ze,
Object o)
ZipEntryInfoProviderZipEntry object based on the properties of
the entity.
addProperties in interface ZipEntryInfoProviderze - The ZipEntry object to add properties to.o - The object to add properties for. If this is a
ReadLockable object, it is locked for reading
when this method is called.public CompoundZipEntryInfoProvider addProvider(ZipEntryInfoProvider zeip)
zeip - The provider.
this.public CompoundZipEntryInfoProvider addProviders(Collection<? extends ZipEntryInfoProvider> c)
c - The provider collection.
this
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||