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 File file
public final boolean deleteOnClose
public CloseableFile(File file, boolean deleteOnClose)
public File getFile()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.