|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Contract public interface ReadableArchive
Interface for implementing read access to an underlying archive on a unspecified medium
| Method Summary | |
|---|---|
boolean |
delete()
deletes the archive |
boolean |
exists()
|
boolean |
exists(String name)
Returns the existence of the given entry name The file name must be relative to the root of the module. |
InputStream |
getEntry(String name)
Returns the InputStream for the given entry name The file name must be relative to the root of the module. |
long |
getEntrySize(String name)
Returns the entry size for a given entry name or 0 if not known |
ReadableArchive |
getParentArchive()
get the parent archive of this archive |
ReadableArchive |
getSubArchive(String name)
Returns an instance of this archive abstraction for an embedded archive within this archive. |
void |
open(URI uri)
Open an abstract archive |
boolean |
renameTo(String name)
rename the archive |
void |
setParentArchive(ReadableArchive parentArchive)
set the parent archive for this archive |
| Methods inherited from interface org.glassfish.api.deployment.archive.Archive |
|---|
close, entries, entries, getArchiveSize, getDirectories, getManifest, getName, getURI, isDirectory |
| Method Detail |
|---|
InputStream getEntry(String name)
throws IOException
name - the file name relative to the root of the module.
IOException
boolean exists(String name)
throws IOException
name - the file name relative to the root of the module.
IOExceptionlong getEntrySize(String name)
name - the entry name
void open(URI uri)
throws IOException
uri - path to the archive
IOException
ReadableArchive getSubArchive(String name)
throws IOException
name - is the entry name relative to the root for the archive
IOExceptionboolean exists()
boolean delete()
boolean renameTo(String name)
name - the archive namevoid setParentArchive(ReadableArchive parentArchive)
parentArchive - the parent archiveReadableArchive getParentArchive()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.
Generated on 12-March-2010 04:35