DataStreamSupporter
Inheritance: java.lang.Object, com.aspose.psd.DisposableObject
public abstract class DataStreamSupporter extends DisposableObject
The data stream container.
Fields
Field | Description |
---|---|
OnSave_internalized | Occurs when image was loaded or saved |
OnUseCredit_internalized | Occurs when credit was used |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
stream | com.aspose.ms.System.IO.Stream |
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
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:
Parameter | Type | Description |
---|---|---|
stream | java.io.OutputStream | The 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:
Parameter | Type | Description |
---|---|---|
file | java.io.RandomAccessFile | The 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:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | The file path to save the object’s data to. |
overWrite | boolean | if 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:
Parameter | Type | Description |
---|---|---|
stream | com.aspose.ms.System.IO.Stream |
setDataStreamContainer(StreamContainer value)
public void setDataStreamContainer(StreamContainer value)
Sets the object’s data stream.
Parameters:
Parameter | Type | Description |
---|---|---|
value | StreamContainer | The object’s data stream. |
setIgnoreAfterSave_internalized(boolean value)
public void setIgnoreAfterSave_internalized(boolean value)
Sets a value indicating whether [ignore after save].
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | true 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:
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 |