Package org.fugerit.java.core.io.file
Class FileFunSecure
- java.lang.Object
-
- org.fugerit.java.core.io.file.FileFunWrapper
-
- org.fugerit.java.core.io.file.FileFunSecure
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,FileFun
public class FileFunSecure extends FileFunWrapper
-
-
Constructor Summary
Constructors Constructor Description FileFunSecure(FileFun wrapped, ExHandler handler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
apply(ExHandler handler, UnsafeVoid<IOException> fun)
void
handleFile(File file)
void
handleFile(File parent, String name)
void
handleFile(String path)
void
handleFile(String parent, String name)
-
Methods inherited from class org.fugerit.java.core.io.file.FileFunWrapper
close, getWrappedFileFun, setWrappedFileFun
-
-
-
-
Method Detail
-
apply
public static void apply(ExHandler handler, UnsafeVoid<IOException> fun)
-
handleFile
public void handleFile(File parent, String name) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Overrides:
handleFile
in classFileFunWrapper
- Throws:
IOException
-
handleFile
public void handleFile(File file) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Overrides:
handleFile
in classFileFunWrapper
- Throws:
IOException
-
handleFile
public void handleFile(String parent, String name) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Overrides:
handleFile
in classFileFunWrapper
- Throws:
IOException
-
handleFile
public void handleFile(String path) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Overrides:
handleFile
in classFileFunWrapper
- Throws:
IOException
-
-