FileStreamContainer Class

Helper for file stream processing.
Inheritance Hierarchy
SystemObject
  Aspose.CADDisposableObject
    Aspose.CADStreamContainer
      Aspose.CADFileStreamContainer

Namespace:  Aspose.CAD
Assembly:  Aspose.CAD (in Aspose.CAD.dll) Version: 20.8
Syntax
public sealed class FileStreamContainer : StreamContainer

The FileStreamContainer type exposes the following members.

Properties
  NameDescription
Public propertyCanRead
Gets a value indicating whether stream supports reading.
(Inherited from StreamContainer.)
Public propertyCanSeek
Gets a value indicating whether stream supports seeking.
(Inherited from StreamContainer.)
Public propertyCanWrite
Gets a value indicating whether stream supports writing.
(Inherited from StreamContainer.)
Public propertyDisposed
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.)
Public propertyFilePath
Gets the file path.
Public propertyIsCreated
Gets a value indicating whether stream was created explicitly.
Public propertyIsStreamDisposedOnClose
Gets a value indicating whether this stream is disposed on close.
(Inherited from StreamContainer.)
Public propertyIsTemporal
Gets or sets a value indicating whether stream is temporal.
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.
(Inherited from StreamContainer.)
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.
(Inherited from StreamContainer.)
Public propertyStream
Gets the data stream.
(Inherited from StreamContainer.)
Public propertySyncRoot
Gets an object that can be used to synchronize access to the synchronized resource.
(Inherited from StreamContainer.)
Methods
  NameDescription
Public methodStatic memberCreateFileStream
Creates a new file stream.
Public methodDispose
Disposes the current instance.
(Inherited from DisposableObject.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFlush
Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
(Inherited from StreamContainer.)
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 methodStatic memberOpenFileStream
Opens an existing file stream. If file stream does not exist the appropriate exception is thrown.
Public methodRead(Byte)
Reads bytes to fill the specified bytes buffer.
(Inherited from StreamContainer.)
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.
(Inherited from StreamContainer.)
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.
(Inherited from StreamContainer.)
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.
(Inherited from StreamContainer.)
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.
(Inherited from StreamContainer.)
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.
(Inherited from StreamContainer.)
Public methodToBytes
Converts the stream data to the Byte array.
(Inherited from StreamContainer.)
Public methodToBytes(Int64, Int64)
Converts the stream data to the Byte array.
(Inherited from StreamContainer.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite(Byte)
Writes all of the specified bytes to the stream.
(Inherited from StreamContainer.)
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.
(Inherited from StreamContainer.)
Public methodWriteByte
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
(Inherited from StreamContainer.)
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.)
Operators
See Also