com.aspose.imaging
Class DataStreamSupporter

java.lang.Object
  extended by com.aspose.imaging.DisposableObject
      extended by com.aspose.imaging.DataStreamSupporter
Direct Known Subclasses:
Image

public class DataStreamSupporter
extends DisposableObject

The data stream container.


Constructor Summary
DataStreamSupporter()
           
 
Method Summary
 void flush()
           Flushes all the cached data directly to the object's stream.
 StreamContainer getDataStreamContainer()
           Gets the object's data stream.
protected  void onDataStreamContainerChanging(StreamContainer streamContainer)
           Called when data stream container is changing.
protected  void releaseManagedResources()
           Releases the managed resources.
 void save(java.io.InputStream stream)
           Saves the object's data to the specified stream.
 void save(java.lang.String filePath)
           Saves the object's data to the specified file location.
 void setDataStreamContainer(StreamContainer value)
           Sets the object's data stream.
 
Methods inherited from class com.aspose.imaging.DisposableObject
dispose, getDisposed, releaseUnmanagedResources, verifyNotDisposed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataStreamSupporter

public DataStreamSupporter()
Method Detail

flush

public void flush()

Flushes all the cached data directly to the object's stream.


getDataStreamContainer

public StreamContainer getDataStreamContainer()

Gets the object's data stream.

Value: The object's data stream.


onDataStreamContainerChanging

protected void onDataStreamContainerChanging(StreamContainer streamContainer)

Called when data stream container is changing.

Parameters:
streamContainer - The stream container.

releaseManagedResources

protected void releaseManagedResources()

Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.

Overrides:
releaseManagedResources in class DisposableObject

save

public void save(java.io.InputStream stream)

Saves the object's data to the specified stream.

Parameters:
stream - The stream to save the object's data to.

save

public void save(java.lang.String filePath)

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

Parameters:
filePath - The file path to save the object's data to.

setDataStreamContainer

public void setDataStreamContainer(StreamContainer value)

Sets the object's data stream.

Value: The object's data stream.