public final class StreamSource extends Source
Represents a stream source.
Constructor and Description |
---|
StreamSource(InputStream stream) |
StreamSource(InputStream stream,
boolean disposeStream) |
StreamSource(com.aspose.ms.System.IO.Stream stream)
Initializes a new instance of the
StreamSource class. |
StreamSource(com.aspose.ms.System.IO.Stream stream,
boolean disposeStream)
Initializes a new instance of the
StreamSource class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getDisposeStream()
Gets a value indicating whether stream should be disposed whenever container gets disposed.
|
com.aspose.ms.System.IO.Stream |
getStream()
Gets the stream.
|
com.aspose.imaging.StreamContainer |
getStreamContainer()
Gets the stream container.
|
public StreamSource(com.aspose.ms.System.IO.Stream stream)
Initializes a new instance of the StreamSource
class.
stream
- The stream to open.public StreamSource(InputStream stream)
public StreamSource(com.aspose.ms.System.IO.Stream stream, boolean disposeStream)
Initializes a new instance of the StreamSource
class.
stream
- The stream to open.disposeStream
- if set to true
the stream will be disposed.public StreamSource(InputStream stream, boolean disposeStream)
public com.aspose.ms.System.IO.Stream getStream()
Gets the stream.
Value: The stream.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
.public com.aspose.imaging.StreamContainer getStreamContainer()
Gets the stream container.
getStreamContainer
in class Source
Use with caution. You will need to dispose the stream container after retrieval.
Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.