Class AbstractDocument

    • Constructor Detail

      • AbstractDocument

        public AbstractDocument()
    • Method Detail

      • close

        public void close()
                   throws IOException
        Description copied from interface: Document
        Closes this document, releasing all resources.

        You should always call this method after manipulating a document. Implementations are invited to call this method in a finaliser as a safety net (even better, implement SafelyCloseable), but since there is no guarantee as to when finalisers are invoked, you should not depend on this behaviour.

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