com.jniwrapper.win32.stg
Interface IStream

All Superinterfaces:
AutoDeleteParameter, ISequentialStream, IUnknown
All Known Implementing Classes:
IStreamImpl

public interface IStream
extends ISequentialStream

This interface is used for reading and writing data to stream objects.

See Also:
Microsoft Structured Storage documentation

Field Summary
static java.lang.String INTERFACE_IDENTIFIER
           
 
Method Summary
 void commit(StgCommit grfCommitFlags)
           
 void copyTo(IStream pstm, Int64 cb, Int64 pcbRead, Int64 pcbWritten)
           
 IStream invokeClone()
           
 void lockRegion(Int64 libOffset, Int64 cb, LockType dwLockType)
           
 void revert()
           
 Int64 seek(Int64 dlibMove, StreamSeek dwOrigin)
           
 void setSize(Int64 libNewSize)
           
 StatStg stat(StatFlag grfStatFlag)
           
 void unlockRegion(Int64 libOffset, Int64 cb, LockType dwLockType)
           
 
Methods inherited from interface com.jniwrapper.win32.stg.ISequentialStream
read, write
 
Methods inherited from interface com.jniwrapper.win32.com.IUnknown
addRef, isNull, queryInterface, release, setNull
 
Methods inherited from interface com.jniwrapper.AutoDeleteParameter
isAutoDelete, setAutoDelete
 

Field Detail

INTERFACE_IDENTIFIER

public static final java.lang.String INTERFACE_IDENTIFIER
See Also:
Constant Field Values
Method Detail

seek

public Int64 seek(Int64 dlibMove,
                  StreamSeek dwOrigin)
           throws ComException
Throws:
ComException

setSize

public void setSize(Int64 libNewSize)
             throws ComException
Throws:
ComException

copyTo

public void copyTo(IStream pstm,
                   Int64 cb,
                   Int64 pcbRead,
                   Int64 pcbWritten)
            throws ComException
Throws:
ComException

commit

public void commit(StgCommit grfCommitFlags)
            throws ComException
Throws:
ComException

revert

public void revert()
            throws ComException
Throws:
ComException

lockRegion

public void lockRegion(Int64 libOffset,
                       Int64 cb,
                       LockType dwLockType)
                throws ComException
Throws:
ComException

unlockRegion

public void unlockRegion(Int64 libOffset,
                         Int64 cb,
                         LockType dwLockType)
                  throws ComException
Throws:
ComException

stat

public StatStg stat(StatFlag grfStatFlag)
             throws ComException
Throws:
ComException

invokeClone

public IStream invokeClone()
                    throws ComException
Throws:
ComException