[
https://issues.apache.org/jira/browse/PDFBOX-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Chojecki updated PDFBOX-1591:
------------------------------------
Component/s: PDModel
Assignee: Thomas Chojecki
The only main resource where it make sense is PDDocument. I'm implementing it
there, so the PDDocument will act like other java convenience resources. So
that Utilities like IOUtil.closeQuietly(Closeable closeable) can be used to
close also the PDDocument after finishing the work.
Also as Stephan said, it can be used for auto closing resources (Java7)
> Resources should implement java.io.closeable
> --------------------------------------------
>
> Key: PDFBOX-1591
> URL: https://issues.apache.org/jira/browse/PDFBOX-1591
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Reporter: Stephan Wienczny
> Assignee: Thomas Chojecki
> Priority: Trivial
>
> All resources shoud implement the java.io.closable interface
> (http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html) which is
> available since Java 1.5.
> I found this when looking at org.apache.pdfbox.pdmodel.PDDocument the close
> method already has the same signature is should have. Just the interface is
> missing.
> One the interface is implemented you can use the new try-with-resource added
> to Java 1.7.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira