com.aspose.imaging.sources
Class StreamSource

java.lang.Object
  extended by com.aspose.imaging.sources.StreamSource
All Implemented Interfaces:
Source

public final class StreamSource
extends java.lang.Object
implements Source

Represents a stream source.


Constructor Summary
StreamSource(java.io.InputStream stream)
          Initializes a new instance of the StreamSource class.
StreamSource(java.io.InputStream stream, boolean disposeStream)
          Initializes a new instance of the StreamSource class.
 
Method Summary
 boolean getDisposeStream()
           Gets a value indicating whether stream should be disposed whenever container gets disposed.
 java.io.InputStream getStream()
          Gets the stream.
 StreamContainer getStreamContainer()
           Gets the stream container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamSource

public StreamSource(java.io.InputStream stream)
Initializes a new instance of the StreamSource class.

Parameters:
stream -

StreamSource

public StreamSource(java.io.InputStream stream,
                    boolean disposeStream)
Initializes a new instance of the StreamSource class.

Parameters:
stream -
disposeStream -
Method Detail

getDisposeStream

public boolean getDisposeStream()

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

Value: true if stream should be disposed; otherwise, false.


getStream

public java.io.InputStream getStream()
Gets the stream.

Returns:
java.io.InputStream instance

getStreamContainer

public StreamContainer getStreamContainer()

Gets the stream container.

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


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