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