Package net.officefloor.web.resource.spi
Interface FileCache
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
public interface FileCache extends java.io.CloseableCache of files.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.file.PathcreateDirectory(java.lang.String name)Creates a new directory.java.nio.file.PathcreateFile(java.lang.String name)Creates a new file.
-
-
-
Method Detail
-
createFile
java.nio.file.Path createFile(java.lang.String name) throws java.io.IOExceptionCreates a new file.- Parameters:
name- Name to aid in identifying the file for debugging.- Returns:
Pathto the new file.- Throws:
java.io.IOException- If fails to create the file.
-
createDirectory
java.nio.file.Path createDirectory(java.lang.String name) throws java.io.IOExceptionCreates a new directory.- Parameters:
name- Name to aid in identifying the file for debugging.- Returns:
Pathto the new directory.- Throws:
java.io.IOException- If fails to create the directory.
-
-