public final class StreamSource extends Source
Represents a stream source.
Constructor and Description |
---|
StreamSource(InputStream stream)
Initializes a new instance of the
StreamSource class. |
StreamSource(InputStream stream,
boolean disposeStream)
Initializes a new instance of the
StreamSource class. |
StreamSource(OutputStream destStream)
Initializes a new instance of the
StreamSource class. |
StreamSource(OutputStream destStream,
boolean disposeStream) |
Modifier and Type | Method and Description |
---|---|
boolean |
getDisposeStream()
Gets a value indicating whether stream should be disposed whenever container gets disposed.
|
InputStream |
getStream()
Gets the stream.
|
StreamContainer |
getStreamContainer()
Gets the stream container.
|
void |
setStream(InputStream value) |
public StreamSource(InputStream stream)
Initializes a new instance of the StreamSource
class.
stream
- The stream to open.public StreamSource(OutputStream destStream)
Initializes a new instance of the StreamSource
class.
destStream
- a destination stream (e.g. ByteArrayOutputStream
)public StreamSource(OutputStream destStream, boolean disposeStream)
public StreamSource(InputStream 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 final InputStream getStream()
Gets the stream.
Value: The source stream.public final void setStream(InputStream value)
public final 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 StreamContainer getStreamContainer()
Gets the stream container.
getStreamContainer
in class Source
Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.