org.ow2.util.archive.impl
Class AbsArchiveImpl

java.lang.Object
  extended by org.ow2.util.archive.impl.AbsArchiveImpl
All Implemented Interfaces:
IArchive
Direct Known Subclasses:
DirectoryArchiveImpl, JarArchiveImpl, MemoryArchive, URLArchiveImpl

public abstract class AbsArchiveImpl
extends Object
implements IArchive

Common code for analyzing manifest.

Author:
Florent BENOIT

Constructor Summary
AbsArchiveImpl()
          Default constructor.
 
Method Summary
 IArchiveMetadata getMetadata()
           
protected  void readManifest(Manifest manifest)
          Read the manifest and complete the metadata.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.util.archive.api.IArchive
close, getEntries, getName, getResource, getResources, getResources, getURL
 

Constructor Detail

AbsArchiveImpl

public AbsArchiveImpl()
Default constructor.

Method Detail

readManifest

protected void readManifest(Manifest manifest)
Read the manifest and complete the metadata.

Parameters:
manifest - the given manifest to analyze

getMetadata

public IArchiveMetadata getMetadata()
Specified by:
getMetadata in interface IArchive
Returns:
the Metadata associated to this archive.

toString

public String toString()
Overrides:
toString in class Object
Returns:
a string representation of the object.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.