Packages

 

com.aspose.psd

Interfaces

Classes

Exceptions

com.aspose.psd

Class FileStreamContainer



  • public final class FileStreamContainer
    extends StreamContainer

    Helper for file stream processing.

    • Method Detail

      • isTemporal

        public final boolean isTemporal()

        Gets or sets a value indicating whether stream is temporal.

        Value: true if stream is temporal; otherwise, false.


        A temporal stream will remove iself when disposed. If the stream is memory based this property has no effect. The stream can be marked as temporal or persistent in case it was created explicitly otherwise the appropriate exception is thrown.
      • setTemporal

        public final void setTemporal(boolean value)

        Gets or sets a value indicating whether stream is temporal.

        Value: true if stream is temporal; otherwise, false.


        A temporal stream will remove iself when disposed. If the stream is memory based this property has no effect. The stream can be marked as temporal or persistent in case it was created explicitly otherwise the appropriate exception is thrown.
      • isCreated

        public final boolean isCreated()

        Gets a value indicating whether stream was created explicitly.

        Value: true if stream was created explicitly; otherwise, false.
      • getFilePath

        public final String getFilePath()

        Gets the file path.

        Value: The file path.
      • createFileStream

        public static FileStreamContainer createFileStream(String fileLocation,
                                                           boolean isTemporal)

        Creates a new file stream.

        Parameters:
        fileLocation - The file location.
        isTemporal - If set to true the file stream container is temporal.
        Returns:
        The file stream container.
      • openFileStream

        public static FileStreamContainer openFileStream(String fileLocation)

        Opens an existing file stream. If file stream does not exist the appropriate exception is thrown.

        Parameters:
        fileLocation - The file location.
        Returns:
        The file stream container.