org.eclipse.jdt.launching.sourcelookup
Class ZipEntryStorage
java.lang.Object
|
+--org.eclipse.core.runtime.PlatformObject
|
+--org.eclipse.jdt.launching.sourcelookup.ZipEntryStorage
- All Implemented Interfaces:
- IAdaptable, IStorage
- public class ZipEntryStorage
- extends PlatformObject
- implements IStorage
Storage implementation for zip entries.
This class may be instantiated; it is not intended to be subclassed.
- Since:
- 2.0
- See Also:
ArchiveSourceLocation
,
IStorage
Constructor Summary |
ZipEntryStorage(ZipFile archive,
ZipEntry entry)
Constructs a new storage implementation for the
given zip entry in the specified zip file |
ZipEntryStorage
public ZipEntryStorage(ZipFile archive,
ZipEntry entry)
- Constructs a new storage implementation for the
given zip entry in the specified zip file
- Parameters:
archive
- zip fileentry
- zip entry
getContents
public InputStream getContents()
throws CoreException
- Specified by:
getContents
in interface IStorage
- See Also:
IStorage.getContents()
getFullPath
public IPath getFullPath()
- Specified by:
getFullPath
in interface IStorage
- See Also:
IStorage.getFullPath()
getName
public String getName()
- Specified by:
getName
in interface IStorage
- See Also:
IStorage.getName()
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interface IStorage
- See Also:
IStorage.isReadOnly()
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
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- See Also:
Object.hashCode()
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.