public interface FileHandle
extends org.eclipse.core.runtime.IAdaptable
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Return true if file exists.
|
java.lang.String |
getAbsoluteName()
Return a name that can access the physical storage without reference to any
other context.
|
java.io.InputStream |
getContents()
Return a stream from which the contents can be read.
|
java.lang.String |
getName()
Return a name that can access the physical storage with respect to its parent.
|
FileHandle |
getParentFileHandle()
Return the handle of the parent of this handle.
|
ProjectHandle |
getProjectHandle()
Return the handle of the project.
|
java.lang.String |
getProjectRelativeName()
Return a name that can access the physical storage with respect to the project.
|
org.eclipse.emf.common.util.URI |
getURI()
Get the URI of the file.
|
java.lang.Object |
isFile()
Return a non-null file object if this Handle applies to a file.
|
java.lang.Object |
isFolder()
Return a non-null folder object if this Handle applies to a folder or directory.
|
java.lang.Object |
isProject()
Return a non-null project object if this Handle applies to a project.
|
boolean exists()
java.lang.String getAbsoluteName()
java.io.InputStream getContents() throws org.eclipse.core.runtime.CoreException, java.io.FileNotFoundException
org.eclipse.core.runtime.CoreException
- if Eclipse resource access problemjava.io.FileNotFoundException
- if File access problemjava.lang.String getName()
FileHandle getParentFileHandle()
ProjectHandle getProjectHandle()
java.lang.String getProjectRelativeName()
org.eclipse.emf.common.util.URI getURI()
java.lang.Object isFile()
java.lang.Object isFolder()
java.lang.Object isProject()