Package fi.iki.elonen
Class NanoHTTPD.DefaultTempFile
- java.lang.Object
-
- fi.iki.elonen.NanoHTTPD.DefaultTempFile
-
- All Implemented Interfaces:
NanoHTTPD.TempFile
- Enclosing class:
- NanoHTTPD
public static class NanoHTTPD.DefaultTempFile extends java.lang.Object implements NanoHTTPD.TempFile
Default strategy for creating and cleaning up temporary files.By default, files are created by
File.createTempFile()
in the directory specified.
-
-
Constructor Summary
Constructors Constructor Description DefaultTempFile(java.io.File tempdir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
java.lang.String
getName()
java.io.OutputStream
open()
-
-
-
Method Detail
-
delete
public void delete() throws java.lang.Exception
- Specified by:
delete
in interfaceNanoHTTPD.TempFile
- Throws:
java.lang.Exception
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceNanoHTTPD.TempFile
-
open
public java.io.OutputStream open() throws java.lang.Exception
- Specified by:
open
in interfaceNanoHTTPD.TempFile
- Throws:
java.lang.Exception
-
-