Eclipse JDT
2.0

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
 
Method Summary
 boolean equals(Object object)
           
 ZipFile getArchive()
          Returns the archive containing the zip entry.
 InputStream getContents()
           
 IPath getFullPath()
           
 String getName()
           
 ZipEntry getZipEntry()
          Returns the entry that contains the source
 int hashCode()
           
 boolean isReadOnly()
           
 
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
 

Constructor Detail

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 file
entry - zip entry
Method Detail

getContents

public InputStream getContents()
                        throws CoreException
Specified by:
getContents in interface IStorage
CoreException
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()

Eclipse JDT
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.