DataStreamSupporter Class

Summary: The data stream container.

Module: aspose.psd

Full Name: aspose.psd.DataStreamSupporter

Inheritance: DisposableObject

Aspose.PSD Version: 24.9.0

Properties

NameTypeAccessDescription
data_stream_containerStreamContainerrGets the object’s data stream.
disposedboolrGets a value indicating whether this instance is disposed.
is_cachedboolrGets a value indicating whether object’s data is cached currently and no data reading is required.

Methods

NameDescription
cache_data()Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.data_stream_container.
save()Saves the object’s data to the current DataStreamSupporter.
save(file_path)Saves the object’s data to the specified file location.
save(file_path, over_write)Saves the object’s data to the specified file location.
save(stream)Saves the object’s data to the specified stream.

Method: save(file_path)

 save(file_path) 

Saves the object’s data to the specified file location.

Parameters:

ParameterTypeDescription
file_pathstringThe file path to save the object’s data to.

Method: save(file_path, over_write)

 save(file_path, over_write) 

Saves the object’s data to the specified file location.

Parameters:

ParameterTypeDescription
file_pathstringThe file path to save the object’s data to.
over_writeboolif set to true over write the file contents, otherwise append will occur.

Method: save(stream)

 save(stream) 

Saves the object’s data to the specified stream.

Parameters:

ParameterTypeDescription
stream_io.BufferedRandomThe stream to save the object’s data to.