|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A storage object represents a set of bytes which can be accessed.
These may be in the form of an IFile
or IFileState
or any other object supplied by user code. The main role of an IStorage
is to provide a uniform API for access to, and presentation of, its content.
Storage objects implement the IAdaptable
interface;
extensions are managed by the platform's adapter manager.
Clients may implement this interface.
Method Summary | |
InputStream |
getContents()
Returns an open input stream on the contents of this storage. |
IPath |
getFullPath()
Returns the full path of this storage. |
String |
getName()
Returns the name of this storage. |
boolean |
isReadOnly()
Returns whether this storage is read-only. |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Method Detail |
public InputStream getContents() throws CoreException
CoreException
- if the contents of this storage could
not be accessed. See any refinements for more information.public IPath getFullPath()
null
if none.public String getName()
null
if this storage has no namegetFullPath()
public boolean isReadOnly()
true
if this storage is read-only
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |