Packages

 

com.aspose.cad.sources

Class StreamSource



  • public final class StreamSource
    extends Source

    Represents a stream source.

    • Constructor Detail

      • StreamSource

        public StreamSource(InputStream stream)

        Initializes a new instance of the StreamSource class.

        Parameters:
        stream - The stream to open.
      • StreamSource

        public StreamSource(com.aspose.ms.System.IO.Stream stream)
      • StreamSource

        public StreamSource(InputStream stream,
                    boolean disposeStream)

        Initializes a new instance of the StreamSource class.

        Parameters:
        stream - The stream to open.
        disposeStream - if set to true the stream will be disposed.
      • StreamSource

        public StreamSource(com.aspose.ms.System.IO.Stream stream,
                    boolean disposeStream)
    • Method Detail

      • getStream

        public InputStream getStream()

        Gets the stream.

        Returns:
        The stream.
      • getStream_internalized

        public com.aspose.ms.System.IO.Stream getStream_internalized()
      • getDisposeStream

        public boolean getDisposeStream()

        Gets a value indicating whether stream should be disposed whenever container gets disposed.

        Returns:
        true if stream should be disposed; otherwise, false.
      • getStreamContainer

        public StreamContainer getStreamContainer()

        Gets the stream container.

        Specified by:
        getStreamContainer in class Source
        Returns:
        the stream container.


        Use with caution. You will need to dispose the stream container after retrieval.