com.sun.enterprise.v3.server
Class CompositeArchive

java.lang.Object
  extended by com.sun.enterprise.deploy.shared.AbstractReadableArchive
      extended by com.sun.enterprise.v3.server.CompositeArchive
All Implemented Interfaces:
Archive, ReadableArchive

public class CompositeArchive
extends AbstractReadableArchive

A composite archive is a readable archive that hides the sub archives.

Author:
Jerome Dochez

Field Summary
 
Fields inherited from class com.sun.enterprise.deploy.shared.AbstractReadableArchive
extraData, parentArchive
 
Constructor Summary
CompositeArchive(ReadableArchive delegate, CompositeHandler filter)
           
 
Method Summary
 void close()
           
 boolean delete()
           
 Enumeration<String> entries()
           
 Enumeration<String> entries(String prefix)
           
 boolean exists()
           
 boolean exists(String name)
           
 long getArchiveSize()
           
 Collection<String> getDirectories()
           
 InputStream getEntry(String name)
           
 long getEntrySize(String name)
           
 Manifest getManifest()
           
 String getName()
           
 ReadableArchive getSubArchive(String name)
           
 URI getURI()
           
 boolean isDirectory(String name)
           
 void open(URI uri)
           
 boolean renameTo(String name)
           
 
Methods inherited from class com.sun.enterprise.deploy.shared.AbstractReadableArchive
getExtraData, getParentArchive, removeExtraData, setExtraData, setParentArchive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeArchive

public CompositeArchive(ReadableArchive delegate,
                        CompositeHandler filter)
Method Detail

getEntry

public InputStream getEntry(String name)
                     throws IOException
Throws:
IOException

exists

public boolean exists(String name)
               throws IOException
Throws:
IOException

getEntrySize

public long getEntrySize(String name)

open

public void open(URI uri)
          throws IOException
Throws:
IOException

getSubArchive

public ReadableArchive getSubArchive(String name)
                              throws IOException
Throws:
IOException

exists

public boolean exists()

delete

public boolean delete()

renameTo

public boolean renameTo(String name)

close

public void close()
           throws IOException
Throws:
IOException

entries

public Enumeration<String> entries()

entries

public Enumeration<String> entries(String prefix)

isDirectory

public boolean isDirectory(String name)

getManifest

public Manifest getManifest()
                     throws IOException
Throws:
IOException

getURI

public URI getURI()

getArchiveSize

public long getArchiveSize()
                    throws SecurityException
Throws:
SecurityException

getName

public String getName()

getDirectories

public Collection<String> getDirectories()
                                  throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.