Packages

 

com.aspose.cad

Class FileStreamContainer

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, Closeable, AutoCloseable


    public final class FileStreamContainer
    extends StreamContainer

    Helper for file stream processing.

    • Method Detail

      • isTemporal

        public 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 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 boolean isCreated()

        Gets a value indicating whether stream was created explicitly.

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

        public String getFilePath()

        Gets the file path.

        Value: The file path.
      • to_Stream

        public static com.aspose.ms.System.IO.Stream to_Stream(FileStreamContainer fileStreamContainer)

        Performs an explicit conversion from Aspose.Imaging.FileStreamContainer to System.IO.Stream.

        Parameters:
        fileStreamContainer - The file stream container.
        Returns:
        The result of the conversion.
      • to_FileStream

        public static com.aspose.ms.System.IO.FileStream to_FileStream(FileStreamContainer fileStreamContainer)

        Performs an explicit conversion from Aspose.Imaging.FileStreamContainer to System.IO.FileStream.

        Parameters:
        fileStreamContainer - The file stream container.
        Returns:
        The result of the conversion.
      • 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 files tream holder.