public class LocalFileStorage extends PlatformObject implements IStorage
java.io.File).
This class may be instantiated; it is not intended to be subclassed.
IStorage| Constructor and Description |
|---|
LocalFileStorage(File file)
Constructs and returns storage for the given file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
InputStream |
getContents()
Returns an open input stream on the contents of this storage.
|
File |
getFile()
Returns the file associated 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.
|
getAdapterclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAdapterpublic LocalFileStorage(File file)
file - a local filepublic InputStream getContents() throws CoreException
IStoragegetContents in interface IStorageCoreException - if the contents of this storage could
not be accessed. See any refinements for more information.public IPath getFullPath()
IStoragegetFullPath in interface IStoragenull if none.public String getName()
IStoragegetName in interface IStoragenull if this storage has no nameIStorage.getFullPath()public boolean isReadOnly()
IStorageisReadOnly in interface IStoragetrue if this storage is read-onlypublic File getFile()
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.