Class 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 Detail

      • file

        public final File file
      • deleteOnClose

        public final boolean deleteOnClose
    • Constructor Detail

      • CloseableFile

        public CloseableFile​(File file,
                             boolean deleteOnClose)