Interface FileHandlerAdapter


  • public interface FileHandlerAdapter
    This interface determines the file name and bytes to use when adding to FileHandler. 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 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 name
        bytes - bytes from preload
        Returns:
        new bytes
        Since:
        01.00.00