Class CloseableFile

java.lang.Object
org.nuxeo.ecm.core.api.CloseableFile
All Implemented Interfaces:
Closeable, AutoCloseable

public class CloseableFile extends Object implements Closeable
A wrapper for a File, which must be closed when done with it in order to release resources.
Since:
7.2
  • Field Details

    • file

      public final File file
    • deleteOnClose

      public final boolean deleteOnClose
  • Constructor Details

    • CloseableFile

      public CloseableFile(File file, boolean deleteOnClose)
  • Method Details