|
Eclipse Platform Release 3.1 |
|||||||||||
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
Implementation of storage for a local file
(java.io.File
).
This class may be instantiated; it is not intended to be subclassed.
IStorage
Constructor Summary | |
---|---|
LocalFileStorage(File file)
Constructs and returns storage for the given file. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
InputStream |
getContents()
Returns an open input stream on the contents of this storage. |
File |
getFile()
Returns the file asscoiated with this storage |
IPath |
getFullPath()
Returns the full path of this storage. |
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(File file)
file
- a local fileMethod Detail |
public InputStream getContents() throws CoreException
IStorage
getContents
in interface IStorage
CoreException
- if the contents of this storage could
not be accessed. See any refinements for more information.public IPath getFullPath()
IStorage
getFullPath
in interface IStorage
null
if none.public String getName()
IStorage
getName
in interface IStorage
null
if this storage has no nameIStorage.getFullPath()
public boolean isReadOnly()
IStorage
isReadOnly
in interface IStorage
true
if this storage is read-onlypublic File getFile()
public boolean equals(Object object)
public int hashCode()
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.