public class DisposableObject extends Object implements com.aspose.ms.System.IDisposable, Closeable
Represents disposable object.
Constructor and Description |
---|
DisposableObject() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7.
|
void |
dispose()
Disposes the current instance.
|
boolean |
getDisposed()
Gets a value indicating whether this instance is disposed.
|
public boolean getDisposed()
Gets a value indicating whether this instance is disposed.
Value:true
if disposed; otherwise, false
.public void dispose()
Disposes the current instance.
dispose
in interface com.aspose.ms.System.IDisposable
public void close() throws IOException
Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7. This method simply call dispose method.
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.