@Internal public class RefCountedTmpFileCreator extends Object implements FunctionWithException<File,RefCountedFileWithStream,IOException>
reference counted files
that
serve as temporary files.Modifier and Type | Method and Description |
---|---|
RefCountedFileWithStream |
apply(File file)
Gets the next temp file and stream to temp file.
|
static RefCountedTmpFileCreator |
inDirectories(File... tmpDirectories) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unchecked
public RefCountedFileWithStream apply(File file) throws IOException
This method is safe against concurrent use.
apply
in interface FunctionWithException<File,RefCountedFileWithStream,IOException>
file
- The argument to the function.IOException
- Thrown, if the stream to the temp file could not be opened.public static RefCountedTmpFileCreator inDirectories(File... tmpDirectories)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.