DataStreamSupporter

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

public abstract class DataStreamSupporter extends DisposableObject

The data stream container.

Fields

FieldDescription
OnSave_internalizedOccurs when image was loaded or saved
OnUseCredit_internalizedOccurs when credit was used

Methods

MethodDescription
cacheData()Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer .
close()Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7.
dispose()Disposes the current instance.
doAfterSave_internalized(System.IO.Stream stream)
equals(Object arg0)
getClass()
getDataStreamContainer()Gets the object’s data stream.
getDisposed()Gets a value indicating whether this instance is disposed.
getSourceImagePath_internalized()Gets the file path of source image if it’s exist.
getUseMemoryStrategy_internalized()Gets a value indicating whether object uses memory optimization strategy
hashCode()
isCached()Gets a value indicating whether object’s data is cached currently and no data reading is required.
notify()
notifyAll()
save()Saves the object’s data to the current DataStreamSupporter .
save(OutputStream stream)Saves the object’s data to the specified stream.
save(RandomAccessFile file)Saves the object’s data to the specified stream.
save(String filePath)Saves the object’s data to the specified file location.
save(String filePath, boolean overWrite)Saves the object’s data to the specified file location.
save_internalized(System.IO.Stream stream)
setDataStreamContainer(StreamContainer value)Sets the object’s data stream.
setIgnoreAfterSave_internalized(boolean value)Sets a value indicating whether [ignore after save].
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

OnSave_internalized

public static final Event<AfterSave> OnSave_internalized

Occurs when image was loaded or saved

OnUseCredit_internalized

public static final Event<AfterUseCredit> OnUseCredit_internalized

Occurs when credit was used

cacheData()

public abstract void cacheData()

Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer .

close()

public void close()

Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7. This method simply call dispose method.

dispose()

public final void dispose()

Disposes the current instance.

doAfterSave_internalized(System.IO.Stream stream)

public void doAfterSave_internalized(System.IO.Stream stream)

Parameters:

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

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

getDataStreamContainer()

public StreamContainer getDataStreamContainer()

Gets the object’s data stream.

Returns: StreamContainer - The object’s data stream.

getDisposed()

public final boolean getDisposed()

Gets a value indicating whether this instance is disposed.

Returns: boolean - true if disposed; otherwise, false .

getSourceImagePath_internalized()

public String getSourceImagePath_internalized()

Gets the file path of source image if it’s exist. Returns an empty string if can’t find the source path.

Returns: java.lang.String - The file path of source image.

getUseMemoryStrategy_internalized()

public boolean getUseMemoryStrategy_internalized()

Gets a value indicating whether object uses memory optimization strategy

Value: true if object uses memory optimization strategy; otherwise, false .

Returns: boolean - a value indicating whether object uses memory optimization strategy

hashCode()

public native int hashCode()

Returns: int

isCached()

public abstract boolean isCached()

Gets a value indicating whether object’s data is cached currently and no data reading is required.

Returns: boolean - a value indicating whether object’s data is cached currently and no data reading is required.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

save()

public void save()

Saves the object’s data to the current DataStreamSupporter .

save(OutputStream stream)

public void save(OutputStream stream)

Saves the object’s data to the specified stream.

Parameters:

ParameterTypeDescription
streamjava.io.OutputStreamThe stream to save the object’s data to.

save(RandomAccessFile file)

public void save(RandomAccessFile file)

Saves the object’s data to the specified stream.

Parameters:

ParameterTypeDescription
filejava.io.RandomAccessFileThe stream to save the object’s data to.

save(String filePath)

public void save(String filePath)

Saves the object’s data to the specified file location.

Parameters:

ParameterTypeDescription
filePathjava.lang.StringThe file path to save the object’s data to.

save(String filePath, boolean overWrite)

public void save(String filePath, boolean overWrite)

Saves the object’s data to the specified file location.

Parameters:

ParameterTypeDescription
filePathjava.lang.StringThe file path to save the object’s data to.
overWritebooleanif set to true over write the file contents, otherwise append will occur.

save_internalized(System.IO.Stream stream)

public void save_internalized(System.IO.Stream stream)

Parameters:

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

setDataStreamContainer(StreamContainer value)

public void setDataStreamContainer(StreamContainer value)

Sets the object’s data stream.

Parameters:

ParameterTypeDescription
valueStreamContainerThe object’s data stream.

setIgnoreAfterSave_internalized(boolean value)

public void setIgnoreAfterSave_internalized(boolean value)

Sets a value indicating whether [ignore after save].

Parameters:

ParameterTypeDescription
valuebooleantrue if [ignore after save]; otherwise, false .

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