public class LocalFileStorage extends PlatformObject implements IStorage
java.io.File
).
This class may be instantiated.
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.
|
getAdapter
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAdapter
public LocalFileStorage(File file)
file
- a local filepublic 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()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.