Microsoft SDK for Java

IStorage Interface Methods

The IStorage interface has the following methods:

CreateStream creates and opens a stream object with the specified name contained in this storage object.

OpenStream opens an existing stream object within this storage object using the specified access permissions in grfMode.

CreateStorage creates and opens a new storage object within this storage object.

OpenStorage opens an existing storage object with the specified name according to the specified access mode.

CopyTo copies the entire contents of this open storage object into another storage object. The layout of the destination storage object may differ.

MoveElementTo copies or moves a substorage or stream from this storage object to another storage object.

Commit reflects changes for a transacted storage object to the parent level.

Revert discards all changes that have been made to the storage object since the last commit operation.

EnumElements returns an enumerator object that can be used to enumerate the storage and stream objects contained within this storage object.

DestroyElement removes the specified storage or stream from this storage object.

RenameElement renames the specified storage or stream in this storage object.

SetElementTimes sets the modification, access, and creation times of the indicated storage element, if supported by the underlying file system.

SetClass assigns the specified CLSID to this storage object.

SetStateBits stores up to 32 bits of state information in this storage object.

Stat returns the STATSTG structure for this open storage object.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.