Package org.fugerit.java.core.io.file
Class AbstractFileFun
- java.lang.Object
-
- org.fugerit.java.core.io.file.AbstractFileFun
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,FileFun
- Direct Known Subclasses:
BaseArchiveDirFileFun
,DeleteRecurseFileFun
,ZipFileFun
public abstract class AbstractFileFun extends Object implements FileFun
-
-
Constructor Summary
Constructors Constructor Description AbstractFileFun()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
abstract void
handleFile(File file)
void
handleFile(File parent, String name)
void
handleFile(String path)
void
handleFile(String parent, String name)
static FileFun
newFileFun(Consumer<File> c)
-
-
-
Method Detail
-
handleFile
public void handleFile(File parent, String name) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Throws:
IOException
-
handleFile
public abstract void handleFile(File file) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Throws:
IOException
-
handleFile
public void handleFile(String parent, String name) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Throws:
IOException
-
handleFile
public void handleFile(String path) throws IOException
- Specified by:
handleFile
in interfaceFileFun
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceFileFun
- Throws:
IOException
-
-