Microsoft SDK for Java

IPersistStream Interface

The IPersistStream interface of the com.ms.com package provides methods for saving and loading objects that use a simple serial stream for their storage needs. The IPersistStream interface inherits from the IPersist interface, and so includes IPersist.GetClassID.

IPersistStream is used to support OLE moniker implementations. Each of the OLE-provided moniker interfaces provides an IPersistStream implementation through which the moniker saves or loads itself. An instance of the OLE generic composite moniker class calls the IPersistStream methods of its component monikers to load or save the components in the proper sequence in a single stream.

OLE containers with embedded and linked component objects use the IPersistStorage interface instead.

Note   The IPersistStream interface was added as of versions 2925 through 3167 of the Microsoft virtual machine.

public interface IPersistStream extends IPersist
{
  // Methods
  public boolean IsDirty();
  public void Load(IStream pstm);
  public void Save(IStream pstm, boolean fClearDirty);
  public long GetSizeMax();
}

IUnknown
  |
  +--IPersist
  |  |
  |  +--IPersistStream

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