com.sun.enterprise.deployment.deploy.shared
Class MultiReadableArchive
java.lang.Object
com.sun.enterprise.deploy.shared.AbstractReadableArchive
com.sun.enterprise.deployment.deploy.shared.MultiReadableArchive
- All Implemented Interfaces:
- Archive, ReadableArchive
@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class MultiReadableArchive
- extends AbstractReadableArchive
Implements ReadableArchive based on multiple underlying ReadableArchives,
each of which will be processed in order when looking up entries, finding
the manifest, etc.
- Author:
- tjquinn
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiReadableArchive
public MultiReadableArchive()
getEntry
public java.io.InputStream getEntry(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
exists
public boolean exists(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
getEntrySize
public long getEntrySize(java.lang.String name)
open
public void open(java.net.URI uri)
throws java.io.IOException
- Throws:
java.io.IOException
open
public void open(java.net.URI... uris)
throws java.io.IOException
- Throws:
java.io.IOException
getSubArchive
public ReadableArchive getSubArchive(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
exists
public boolean exists()
delete
public boolean delete()
renameTo
public boolean renameTo(java.lang.String name)
setParentArchive
public void setParentArchive(ReadableArchive parentArchive)
- Description copied from class:
AbstractReadableArchive
- set the parent archive for this archive
- Specified by:
setParentArchive in interface ReadableArchive- Overrides:
setParentArchive in class AbstractReadableArchive
- Parameters:
parentArchive - the parent archive
getParentArchive
public ReadableArchive getParentArchive()
- Description copied from class:
AbstractReadableArchive
- get the parent archive of this archive
- Specified by:
getParentArchive in interface ReadableArchive- Overrides:
getParentArchive in class AbstractReadableArchive
- Returns:
- the parent archive
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
entries
public java.util.Enumeration<java.lang.String> entries()
entries
public java.util.Enumeration<java.lang.String> entries(java.lang.String prefix)
getDirectories
public java.util.Collection<java.lang.String> getDirectories()
throws java.io.IOException
- Throws:
java.io.IOException
isDirectory
public boolean isDirectory(java.lang.String name)
getManifest
public java.util.jar.Manifest getManifest()
throws java.io.IOException
- Throws:
java.io.IOException
getURI
public java.net.URI getURI()
getURI
public java.net.URI getURI(int slot)
getArchiveSize
public long getArchiveSize()
throws java.lang.SecurityException
- Throws:
java.lang.SecurityException
getName
public java.lang.String getName()
Copyright © 2012 GlassFish Community. All Rights Reserved.