Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5

Interface IStorage

All Superinterfaces:
All Known Subinterfaces:
IEncodedStorage, IFile, IFileState
All Known Implementing Classes:
LocalFileStorage, ZipEntryStorage

public interface IStorage
extends IAdaptable

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

Method Detail


InputStream getContents()
Returns 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 null if none.


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, or null if this storage has no name
See Also:


boolean isReadOnly()
Returns whether this storage is read-only.

true if this storage is read-only

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire