Class TemporaryFile
- java.lang.Object
-
- com.android.tools.build.apkzlib.bytestorage.TemporaryFile
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class TemporaryFile extends java.lang.Object implements java.io.CloseableA temporary file or directory. Wraps a file or directory and deletes it (recursively, if it is a directory) when closed.
-
-
Constructor Summary
Constructors Constructor Description TemporaryFile(java.io.File file)Creates a new wrapper around the given file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.FilegetFile()Obtains the file or directory this temporary file refers to.
-
-
-
Method Detail
-
getFile
public java.io.File getFile()
Obtains the file or directory this temporary file refers to.
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-