- All Superinterfaces:
public interface IStorage extends IAdaptableA storage object represents a set of bytes which can be accessed. These may be in the form of an
IFileStateor any other object supplied by user code. The main role of an
IStorageis to provide a uniform API for access to, and presentation of, its content.
Storage objects implement the
IAdaptableinterface; extensions are managed by the platform's adapter manager.
Clients may implement this interface.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
getContents()Returns an open input stream on the contents of this storage.
getFullPath()Returns the full path of this storage.
getName()Returns the name of this storage.
isReadOnly()Returns whether this storage is read-only.
InputStream getContents() throws CoreExceptionReturns an open input stream on the contents of this storage. The caller is responsible for closing the stream when finished.
- an input stream containing the contents of this storage
CoreException- if the contents of this storage could not be accessed. See any refinements for more information.
IPath getFullPath()Returns the full path of this storage. The returned value depends on the implementor/extender. A storage need not have a path.
- the path related to the data represented by this storage or
String getName()Returns the name of this storage. The name of a storage is synonymous with the last segment of its full path though if the storage does not have a path, it may still have a name.
- the name of the data represented by this storage,
nullif this storage has no name
- See Also:
boolean isReadOnly()Returns whether this storage is read-only.
trueif this storage is read-only