StreamSource
Inheritance: java.lang.Object, com.aspose.psd.Source
public final class StreamSource extends Source
Represents a stream source.
Constructors
| Constructor | Description |
|---|---|
| StreamSource() | Initializes a new instance of the StreamSource class with Null stream. |
| StreamSource(InputStream stream) | Initializes a new instance of the StreamSource class. |
| StreamSource(OutputStream destStream) | Initializes a new instance of the StreamSource class. |
| StreamSource(OutputStream destStream, boolean disposeStream) | |
| StreamSource(System.IO.Stream stream) | |
| StreamSource(InputStream stream, boolean disposeStream) | Initializes a new instance of the StreamSource class. |
| StreamSource(System.IO.Stream stream, boolean disposeStream) |
Methods
| Method | Description |
|---|---|
| create_internalized(System.IO.Stream stream) | |
| create_internalized(System.IO.Stream stream, boolean disposeStream) | |
| equals(Object arg0) | |
| getClass() | |
| getDisposeStream() | Gets a value indicating whether stream should be disposed whenever container gets disposed. |
| getStream() | |
| getStreamContainer() | Gets the stream container. |
| getStream_internalized() | Gets the stream. |
| hashCode() | |
| notify() | |
| notifyAll() | |
| setStream(InputStream value) | |
| setStream_internalized(System.IO.Stream value) | Gets the stream. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
StreamSource()
public StreamSource()
Initializes a new instance of the StreamSource class with Null stream. This constructor allows to create new images without input stream, images stored only in memory.
StreamSource(InputStream stream)
public StreamSource(InputStream stream)
Initializes a new instance of the StreamSource class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.InputStream | The stream to open. |
StreamSource(OutputStream destStream)
public StreamSource(OutputStream destStream)
Initializes a new instance of the StreamSource class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| destStream | java.io.OutputStream | a destination stream (e.g. java.io.ByteArrayOutputStream) |
StreamSource(OutputStream destStream, boolean disposeStream)
public StreamSource(OutputStream destStream, boolean disposeStream)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| destStream | java.io.OutputStream | |
| disposeStream | boolean |
StreamSource(System.IO.Stream stream)
public StreamSource(System.IO.Stream stream)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | com.aspose.ms.System.IO.Stream |
StreamSource(InputStream stream, boolean disposeStream)
public StreamSource(InputStream stream, boolean disposeStream)
Initializes a new instance of the StreamSource class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.InputStream | The stream to open. |
| disposeStream | boolean | if set to true the stream will be disposed. |
StreamSource(System.IO.Stream stream, boolean disposeStream)
public StreamSource(System.IO.Stream stream, boolean disposeStream)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | com.aspose.ms.System.IO.Stream | |
| disposeStream | boolean |
create_internalized(System.IO.Stream stream)
public static StreamSource create_internalized(System.IO.Stream stream)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | com.aspose.ms.System.IO.Stream |
Returns: StreamSource
create_internalized(System.IO.Stream stream, boolean disposeStream)
public static StreamSource create_internalized(System.IO.Stream stream, boolean disposeStream)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | com.aspose.ms.System.IO.Stream | |
| disposeStream | boolean |
Returns: StreamSource
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDisposeStream()
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 .
Returns: boolean
getStream()
public final System.IO.Stream getStream()
Returns: com.aspose.ms.System.IO.Stream
getStreamContainer()
public StreamContainer getStreamContainer()
Gets the stream container.
Returns: StreamContainer - the stream container.
Use with caution. You will need to dispose the stream container after retrieval.
getStream_internalized()
public final InputStream getStream_internalized()
Gets the stream.
Value: The source stream.
Returns: java.io.InputStream
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setStream(InputStream value)
public final void setStream(InputStream value)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.io.InputStream |
setStream_internalized(System.IO.Stream value)
public final void setStream_internalized(System.IO.Stream value)
Gets the stream.
Value: The source stream.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | com.aspose.ms.System.IO.Stream |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |