public final class SystemTempFileCreator extends Object implements TempFileCreator
| Constructor and Description |
|---|
SystemTempFileCreator() |
| Modifier and Type | Method and Description |
|---|---|
File |
createTempDirectory(String prefix)
Create a temporary folder.
|
File |
createTempDirectory(String prefix,
FileAttribute<?> attributes)
Creates a temporary folder.
|
File |
createTempFile(String prefix,
String suffix)
Creates a temporary file.
|
@Inject public SystemTempFileCreator()
public File createTempFile(String prefix, String suffix) throws IOException
TempFileCreatorcreateTempFile in interface TempFileCreatorprefix - the prefix for the filesuffix - the suffix for the fileIOExceptionpublic File createTempDirectory(String prefix, FileAttribute<?> attributes) throws IOException
TempFileCreatorcreateTempDirectory in interface TempFileCreatorprefix - the prefix for the fileattributes - the attributes for the fileIOExceptionpublic File createTempDirectory(String prefix) throws IOException
TempFileCreatorcreateTempDirectory in interface TempFileCreatorprefix - the prefix for the folderIOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.