public class ZipEntryStorage extends PlatformObject implements IStorage
This class may be instantiated.
IStorage
Constructor and Description |
---|
ZipEntryStorage(ZipFile archive,
ZipEntry entry)
Constructs a new storage implementation for the
given zip entry in the specified zip file
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
ZipFile |
getArchive()
Returns the archive containing the zip entry.
|
InputStream |
getContents()
Returns an open input stream on the contents of this storage.
|
IPath |
getFullPath()
Returns the full path of this storage.
|
String |
getName()
Returns the name of this storage.
|
ZipEntry |
getZipEntry()
Returns the entry that contains the source
|
int |
hashCode() |
boolean |
isReadOnly()
Returns whether this storage is read-only.
|
getAdapter
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAdapter
public InputStream getContents() throws CoreException
IStorage
getContents
in interface IStorage
CoreException
- if the contents of this storage could
not be accessed. See any refinements for more information.public IPath getFullPath()
IStorage
getFullPath
in interface IStorage
null
if none.public String getName()
IStorage
getName
in interface IStorage
null
if this storage has no nameIStorage.getFullPath()
public boolean isReadOnly()
IStorage
isReadOnly
in interface IStorage
true
if this storage is read-onlypublic ZipFile getArchive()
public ZipEntry getZipEntry()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.