Class ZipEntryStorage
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.debug.core.sourcelookup.containers.ZipEntryStorage
-
- All Implemented Interfaces:
IStorage,IAdaptable
public class ZipEntryStorage extends PlatformObject implements IStorage
Storage implementation for zip entries.This class may be instantiated.
- Since:
- 3.0
- See Also:
IStorage- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Constructor Summary
Constructors Constructor Description ZipEntryStorage(ZipFile archive, ZipEntry entry)Constructs a new storage implementation for the given zip entry in the specified zip file
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)ZipFilegetArchive()Returns the archive containing the zip entry.InputStreamgetContents()Returns an open input stream on the contents of this storage.IPathgetFullPath()Returns the full path of this storage.StringgetName()Returns the name of this storage.ZipEntrygetZipEntry()Returns the entry that contains the sourceinthashCode()booleanisReadOnly()Returns whether this storage is read-only.-
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
-
-
-
Method Detail
-
getContents
public InputStream getContents() throws CoreException
Description copied from interface:IStorageReturns an open input stream on the contents of this storage. The caller is responsible for closing the stream when finished.- Specified by:
getContentsin interfaceIStorage- Returns:
- an input stream containing the contents of this storage
- Throws:
CoreException- if the contents of this storage could not be accessed. See any refinements for more information.
-
getFullPath
public IPath getFullPath()
Description copied from interface:IStorageReturns the full path of this storage. The returned value depends on the implementor/extender. A storage need not have a path.- Specified by:
getFullPathin interfaceIStorage- Returns:
- the path related to the data represented by this storage or
nullif none.
-
getName
public String getName()
Description copied from interface:IStorageReturns the name of this storage. The name of a storage is synonymous with the last segment of its full path though if the storage does not have a path, it may still have a name.- Specified by:
getNamein interfaceIStorage- Returns:
- the name of the data represented by this storage,
or
nullif this storage has no name - See Also:
IStorage.getFullPath()
-
isReadOnly
public boolean isReadOnly()
Description copied from interface:IStorageReturns whether this storage is read-only.- Specified by:
isReadOnlyin interfaceIStorage- Returns:
trueif this storage is read-only
-
getArchive
public ZipFile getArchive()
Returns the archive containing the zip entry.- Returns:
- zip file
-
getZipEntry
public ZipEntry getZipEntry()
Returns the entry that contains the source- Returns:
- zip entry
-
-