Package org.apache.poi.util
Class UserNameAwareTempFileCreationStrategy
- java.lang.Object
-
- org.apache.poi.util.DefaultTempFileCreationStrategy
-
- org.apache.poi.util.UserNameAwareTempFileCreationStrategy
-
- All Implemented Interfaces:
TempFileCreationStrategy
public class UserNameAwareTempFileCreationStrategy extends DefaultTempFileCreationStrategy
Username-aware subclass ofDefaultTempFileCreationStrategythat avoids permission issues when deploying applications with multiple users on the same server. Other than adding the username to the temporary directory, all other behavior is the same as the superclass.- Since:
- POI 5.4.0
-
-
Field Summary
-
Fields inherited from class org.apache.poi.util.DefaultTempFileCreationStrategy
DELETE_FILES_ON_EXIT, POIFILES
-
-
Constructor Summary
Constructors Constructor Description UserNameAwareTempFileCreationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.nio.file.PathgetPOIFilesDirectoryPath()-
Methods inherited from class org.apache.poi.util.DefaultTempFileCreationStrategy
createTempDirectory, createTempFile, getJavaIoTmpDir
-
-
-
-
Method Detail
-
getPOIFilesDirectoryPath
protected java.nio.file.Path getPOIFilesDirectoryPath() throws java.io.IOException- Overrides:
getPOIFilesDirectoryPathin classDefaultTempFileCreationStrategy- Throws:
java.io.IOException
-
-