|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.util.TempFile.DefaultTempFileCreationStrategy
public static class TempFile.DefaultTempFileCreationStrategy
Default implementation of the TempFileCreationStrategy used by TempFile:
Files are collected into one directory and by default are deleted on exit from the VM.
Files can be kept by defining the system property poi.keep.tmp.files.
| Constructor Summary | |
|---|---|
TempFile.DefaultTempFileCreationStrategy()
Creates the strategy so that it creates the temporary files in the default directory. |
|
TempFile.DefaultTempFileCreationStrategy(java.io.File dir)
Creates the strategy allowing to set the |
|
| Method Summary | |
|---|---|
java.io.File |
createTempFile(java.lang.String prefix,
java.lang.String suffix)
Creates a new and empty temporary file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TempFile.DefaultTempFileCreationStrategy()
File.createTempFile(String, String)public TempFile.DefaultTempFileCreationStrategy(java.io.File dir)
dir - The directory where the temporary files will be created (null to use the default directory).File.createTempFile(String, String, File)| Method Detail |
|---|
public java.io.File createTempFile(java.lang.String prefix,
java.lang.String suffix)
throws java.io.IOException
TempFileCreationStrategy
createTempFile in interface TempFileCreationStrategyprefix - The prefix to be used to generate the name of the temporary file.suffix - The suffix to be used to generate the name of the temporary file.
java.io.IOException - If no temporary file could be created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||