com.aspose.imaging
Class DisposableObject

java.lang.Object
  extended by com.aspose.imaging.DisposableObject
Direct Known Subclasses:
Brush, DataStreamSupporter, StreamContainer, StringFormat

public class DisposableObject
extends java.lang.Object

Represents disposable object.


Constructor Summary
DisposableObject()
           
 
Method Summary
 void dispose()
           Disposes the current instance.
 boolean getDisposed()
           Gets a value indicating whether this instance is disposed.
protected  void releaseManagedResources()
           Releases the managed resources.
protected  void releaseUnmanagedResources()
           Releases the unmanaged resources.
protected  void verifyNotDisposed()
           Verifies that the current instance is not disposed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisposableObject

public DisposableObject()
Method Detail

dispose

public void dispose()

Disposes the current instance.


getDisposed

public boolean getDisposed()

Gets a value indicating whether this instance is disposed.

Value: true if disposed; otherwise, false.


releaseManagedResources

protected void releaseManagedResources()

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


releaseUnmanagedResources

protected void releaseUnmanagedResources()

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


verifyNotDisposed

protected void verifyNotDisposed()

Verifies that the current instance is not disposed.