StreamSource

Inheritance: java.lang.Object, com.aspose.psd.Source

public final class StreamSource extends Source

Represents a stream source.

Constructors

ConstructorDescription
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

MethodDescription
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:

ParameterTypeDescription
streamjava.io.InputStreamThe stream to open.

StreamSource(OutputStream destStream)

public StreamSource(OutputStream destStream)

Initializes a new instance of the StreamSource class.

Parameters:

ParameterTypeDescription
destStreamjava.io.OutputStreama destination stream (e.g. java.io.ByteArrayOutputStream)

StreamSource(OutputStream destStream, boolean disposeStream)

public StreamSource(OutputStream destStream, boolean disposeStream)

Parameters:

ParameterTypeDescription
destStreamjava.io.OutputStream
disposeStreamboolean

StreamSource(System.IO.Stream stream)

public StreamSource(System.IO.Stream stream)

Parameters:

ParameterTypeDescription
streamcom.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:

ParameterTypeDescription
streamjava.io.InputStreamThe stream to open.
disposeStreambooleanif set to true the stream will be disposed.

StreamSource(System.IO.Stream stream, boolean disposeStream)

public StreamSource(System.IO.Stream stream, boolean disposeStream)

Parameters:

ParameterTypeDescription
streamcom.aspose.ms.System.IO.Stream
disposeStreamboolean

create_internalized(System.IO.Stream stream)

public static StreamSource create_internalized(System.IO.Stream stream)

Parameters:

ParameterTypeDescription
streamcom.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:

ParameterTypeDescription
streamcom.aspose.ms.System.IO.Stream
disposeStreamboolean

Returns: StreamSource

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
valuejava.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:

ParameterTypeDescription
valuecom.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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int