The IStream Interface contains the following methods:
Clone creates a new stream object with its own seek pointer that references the same bytes as the original stream.
Commit ensures that any changes made to a stream object opened in transacted mode are reflected in the parent storage object.
CopyTo copies a specific number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.
LockRegion restricts access to a range of bytes in the stream.
Read reads bytes from the stream object into a byte array, starting at a specified offset from the current seek pointer.
Revert discards all changes made to a transacted stream since the last Commit call.
Seek changes the seek pointer to a new location relative to the beginning of the stream, the end of the stream, or the current seek pointer.
SetSize changes the size of the stream object.
Stat retrieves the STATSTG structure for the current stream. (This structure contains statistical information about the current stream.)
UnlockRegion removes the access restriction on a range of bytes that was previously restricted with the LockRegion method.
write writes bytes from a byte array into the stream object, starting at a specified offset from the current seek pointer.