SplitStreamContainer Class
Represents split stream container which contains the stream and provides stream processing routines.
Inheritance Hierarchy

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 20.05
Syntax
public class SplitStreamContainer : StreamContainer

The SplitStreamContainer type exposes the following members.

Constructors
  NameDescription
Public methodSplitStreamContainer(Stream)
Initializes a new instance of the SplitStreamContainer class.
Public methodSplitStreamContainer(Stream, Boolean)
Initializes a new instance of the SplitStreamContainer class.
Public methodSplitStreamContainer(StreamContainer, Boolean)
Initializes a new instance of the SplitStreamContainer class.
Properties
  NameDescription
Public propertyCanRead
Gets a value indicating whether stream supports reading.
(Overrides StreamContainerCanRead.)
Public propertyCanSeek
Gets a value indicating whether stream supports seeking.
(Overrides StreamContainerCanSeek.)
Public propertyCanWrite
Gets a value indicating whether stream supports writing.
(Overrides StreamContainerCanWrite.)
Public propertyDisposed
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.)
Public propertyIsStreamDisposedOnClose
Gets a value indicating whether this stream is disposed on close.
(Inherited from StreamContainer.)
Public propertyLength
Gets or sets the stream length in bytes. This value is less than the Length by the starting stream position passed in the StreamContainer constructor.
(Overrides StreamContainerLength.)
Public propertyPosition
Gets or sets the current position within the stream. This value represents offset from the starting stream position passed in the StreamContainer constructor.
(Overrides StreamContainerPosition.)
Public propertyStream
Gets the data stream.
(Overrides StreamContainerStream.)
Public propertySyncRoot
Gets an object that can be used to synchronize access to the synchronized resource.
Methods
  NameDescription
Protected methodAfterStreamDisposed
Called after the stream is disposed.
(Inherited from StreamContainer.)
Protected methodBeforeSave
Called before save occurs on the destination stream.
(Inherited from StreamContainer.)
Protected methodBeforeStreamDisposed
Called before the stream is disposed.
(Inherited from StreamContainer.)
Public methodCode exampleDispose
Disposes the current instance.
(Inherited from DisposableObject.)
Protected methodDisposeStream
Disposes the stream.
(Overrides StreamContainerDisposeStream.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize (Inherited from DisposableObject.)
Public methodFlush
Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
(Overrides StreamContainerFlush.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodInsert
Inserts the stream container into specified position.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead(Byte)
Reads bytes to fill the specified bytes buffer.
(Overrides StreamContainerRead(Byte).)
Public methodRead(Byte, Int32, Int32)
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
(Overrides StreamContainerRead(Byte, Int32, Int32).)
Public methodReadByte
Reads 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.
(Overrides StreamContainerReadByte.)
Protected methodReleaseManagedResources
Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.
(Overrides StreamContainerReleaseManagedResources.)
Protected methodReleaseUnmanagedResources
Releases the unmanaged resources. Make sure no managed resources are released here, since they may have been already released.
(Inherited from DisposableObject.)
Public methodSave(Stream)
Saves (copies) the stream's data to the specified stream. Uses default buffer size ReadWriteBytesCount and stream Length value.
(Inherited from StreamContainer.)
Public methodSave(String)
Saves (copies) the stream's data to the specified stream. Uses default buffer size ReadWriteBytesCount and stream Length value.
(Inherited from StreamContainer.)
Public methodSave(Stream, Int32)
Saves (copies) all the stream's data to the specified stream. Uses stream Length value.
(Inherited from StreamContainer.)
Public methodSave(String, Int32)
Saves (copies) the stream's data to the specified stream. Uses stream Length value.
(Inherited from StreamContainer.)
Public methodSave(Stream, Int32, Int64)
Saves (copies) the stream's data to the specified stream.
(Overrides StreamContainerSave(Stream, Int32, Int64).)
Public methodSave(String, Int32, Int64)
Saves (copies) the stream's data to the specified stream.
(Inherited from StreamContainer.)
Public methodSeek
Sets the position within the current stream.
(Overrides StreamContainerSeek(Int64, SeekOrigin).)
Public methodSeekBegin
Sets the stream position to the beginning of the stream. This value represents offset from the starting stream position passed in the StreamContainer constructor.
(Overrides StreamContainerSeekBegin.)
Public methodToBytes
Converts the stream data to the Byte array.
(Overrides StreamContainerToBytes.)
Public methodToBytes(Int64, Int64)
Converts the stream data to the Byte array.
(Overrides StreamContainerToBytes(Int64, Int64).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodVerifyNotDisposed
Verifies that the current instance is not disposed.
(Inherited from DisposableObject.)
Public methodWrite(Byte)
Writes all of the specified bytes to the stream.
(Overrides StreamContainerWrite(Byte).)
Public methodWrite(Byte, Int32, Int32)
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
(Overrides StreamContainerWrite(Byte, Int32, Int32).)
Public methodWriteByte
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
(Overrides StreamContainerWriteByte(Byte).)
Public methodWriteTo(StreamContainer)
Copies the contained data to another StreamContainer.
(Inherited from StreamContainer.)
Public methodWriteTo(StreamContainer, Int64)
Copies the contained data to another StreamContainer.
(Inherited from StreamContainer.)
Fields
  NameDescription
Protected fieldStartPosition
The starting position inside the stream.
(Inherited from StreamContainer.)
See Also