Interface FileHandlerAdapter
-
public interface FileHandlerAdapterThis interface determines the file name and bytes to use when adding toFileHandler. Not intended for directories.
Only handles files before the exchange.- Since:
- 02.00.00
- Version:
- 02.00.00
- Author:
- Ktt Development
- See Also:
FileHandler
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default byte[]getBytes(File file, byte[] bytes)Returns the bytes when given a file and its initial contentsdefault StringgetName(File file)Returns the name when given a file.
-
-
-
Method Detail
-
getName
default String getName(File file)
Returns the name when given a file.- Parameters:
file- file to name- Returns:
- new name
- Since:
- 01.00.00
-
getBytes
default byte[] getBytes(File file, byte[] bytes)
Returns the bytes when given a file and its initial contents- Parameters:
file- file to namebytes- bytes from preload- Returns:
- new bytes
- Since:
- 01.00.00
-
-