StreamWrapper class

StreamWrapper class

Aspose.IO.Stream wrapper for COM interface.

The StreamWrapper type exposes the following members:

Properties

PropertyDescription
streamGets a stream.
Read-only io.RawIOBase.
can_readGets a value indicating whether the current stream supports reading.
Read-only bool.
can_seekGets a value indicating whether the current stream supports seeking.
Read-only bool.
can_writeGets a value indicating whether the current stream supports writing.
Read-only bool.
lengthGets the length in bytes of the stream.
Read-only int.
positionGets or sets the position within the current stream.
Read-only int.

Methods

MethodDescription
closeCloses the current stream and releases any resources.
flushClears all buffers for this stream and causes any buffered data to be written to the underlying device.
readReads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
read_byteReads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
seekSets the position within the current stream
writewrites a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
write_byteWrites a byte to the current position in the stream and advances the position within the stream by one byte.

See Also