public class LocalFileStorage extends PlatformObject implements IStorage
java.io.File).
This class may be instantiated.
IStorage| Constructor and Description |
|---|
LocalFileStorage(java.io.File file)
Constructs and returns storage for the given file.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAdapterclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAdapterpublic LocalFileStorage(java.io.File file)
file - a local filepublic java.io.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 java.lang.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 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
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.