Package org.fugerit.java.core.io.file
Class FileFunWrapper
- java.lang.Object
-
- org.fugerit.java.core.io.file.FileFunWrapper
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,FileFun
- Direct Known Subclasses:
FileFunSecure
public class FileFunWrapper extends Object implements FileFun
-
-
Constructor Summary
Constructors Constructor Description FileFunWrapper(FileFun wrappedFileFun)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
FileFun
getWrappedFileFun()
void
handleFile(File file)
void
handleFile(File parent, String name)
void
handleFile(String path)
void
handleFile(String parent, String name)
void
setWrappedFileFun(FileFun wrappedFileFun)
-
-
-
Constructor Detail
-
FileFunWrapper
public FileFunWrapper(FileFun wrappedFileFun)
-
-
Method Detail
-
handleFile
public void handleFile(String parent, String name) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Throws:
IOException
-
handleFile
public void handleFile(File parent, String name) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Throws:
IOException
-
handleFile
public void handleFile(File file) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Throws:
IOException
-
handleFile
public void handleFile(String path) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Throws:
IOException
-
getWrappedFileFun
public FileFun getWrappedFileFun()
-
setWrappedFileFun
public void setWrappedFileFun(FileFun wrappedFileFun)
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceFileFun
- Throws:
IOException
-
-