org.eclipse.jdt.internal.core
Class JarEntryFile
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.jdt.internal.core.JarEntryResource
org.eclipse.jdt.internal.core.JarEntryFile
- All Implemented Interfaces:
- IStorage, org.eclipse.core.runtime.IAdaptable, IJarEntryResource
public class JarEntryFile
- extends JarEntryResource
A jar entry that represents a non-java file found in a JAR.
- See Also:
IStorage
Constructor Summary |
JarEntryFile(java.lang.String simpleName)
|
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
getAdapter |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
JarEntryFile
public JarEntryFile(java.lang.String simpleName)
clone
public JarEntryResource clone(java.lang.Object newParent)
- Specified by:
clone
in class JarEntryResource
getContents
public java.io.InputStream getContents()
throws org.eclipse.core.runtime.CoreException
- Description copied from interface:
IStorage
- Returns an open input stream on the contents of this storage.
The caller is responsible for closing the stream when finished.
- Returns:
- an input stream containing the contents of this storage
- Throws:
org.eclipse.core.runtime.CoreException
- if the contents of this storage could
not be accessed. See any refinements for more information.
getChildren
public IJarEntryResource[] getChildren()
- Description copied from interface:
IJarEntryResource
- Returns the list of children of this jar entry resource.
Returns an empty array if this jar entry is a file, or if this jar entry is a directory and it has no children.
- Returns:
- the children of this jar entry resource
isFile
public boolean isFile()
- Description copied from interface:
IJarEntryResource
- Returns
true
if this jar entry represents a file.
Returns false
if it is a directory.
- Returns:
- whether this jar entry is a file
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object