|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.debug.core.sourcelookup.containers.LocalFileStorage
public class LocalFileStorage
Implementation of storage for a local file
(java.io.File).
This class may be instantiated.
IStorage| Constructor Summary | |
|---|---|
LocalFileStorage(java.io.File file)
Constructs and returns storage for the given file. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
java.io.InputStream |
getContents()
Returns an open input stream on the contents of this storage. |
java.io.File |
getFile()
Returns the file associated with this storage |
IPath |
getFullPath()
Returns the full path of this storage. |
java.lang.String |
getName()
Returns the name of this storage. |
int |
hashCode()
|
boolean |
isReadOnly()
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 |
| Constructor Detail |
|---|
public LocalFileStorage(java.io.File file)
file - a local file| Method Detail |
|---|
public java.io.InputStream getContents()
throws CoreException
IStorage
getContents in interface IStorageCoreException - if the contents of this storage could
not be accessed. See any refinements for more information.public IPath getFullPath()
IStorage
getFullPath in interface IStoragenull if none.public java.lang.String getName()
IStorage
getName in interface IStoragenull if this storage has no nameIStorage.getFullPath()public boolean isReadOnly()
IStorage
isReadOnly in interface IStoragetrue if this storage is read-onlypublic java.io.File getFile()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.