public class CloseableFile extends Object implements Closeable
File
, which must be closed when done with it in order to release resources.Modifier and Type | Field and Description |
---|---|
boolean |
deleteOnClose |
File |
file |
Constructor and Description |
---|
CloseableFile(File file,
boolean deleteOnClose) |
public final boolean deleteOnClose
public CloseableFile(File file, boolean deleteOnClose)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2017 Nuxeo. All rights reserved.