Packages

 

com.aspose.cad

Class DisposableObject

    • Constructor Detail

      • DisposableObject

        public DisposableObject()
    • Method Detail

      • getDisposed

        public boolean getDisposed()

        Gets a value indicating whether this instance is disposed.

        Returns:
        true if disposed; otherwise, false.
      • dispose

        public void dispose()

        Disposes the current instance.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable
      • close

        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.

        Specified by:
        close in interface Closeable
        Specified by:
        close in interface AutoCloseable
        Throws:
        IOException