mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
use Files.createTempFile
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898136 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3f3d194689
commit
9152b15bb5
@ -22,6 +22,8 @@ import static org.apache.poi.util.TempFile.JAVA_IO_TMPDIR;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.attribute.FileAttribute;
|
||||
|
||||
/**
|
||||
* Default implementation of the {@link TempFileCreationStrategy} used by {@link TempFile}:
|
||||
@ -58,7 +60,7 @@ public class DefaultTempFileCreationStrategy implements TempFileCreationStrategy
|
||||
*
|
||||
* @param dir The directory where the temporary files will be created (<code>null</code> to use the default directory).
|
||||
*
|
||||
* @see File#createTempFile(String, String, File)
|
||||
* @see Files#createTempFile(Path, String, String, FileAttribute[])
|
||||
*/
|
||||
public DefaultTempFileCreationStrategy(File dir) {
|
||||
this.dir = dir;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user