Class FileListCap


  • public class FileListCap
    extends Object
    Maintains most recent N files in a directory in cooperation with the writer. Useful to record incidents as files without bankrupting
    Author:
    stevenchristou
    • Constructor Detail

      • FileListCap

        public FileListCap​(File folder,
                           int size)
    • Method Detail

      • getFolder

        public File getFolder()
      • getSize

        public int getSize()
      • add

        public void add​(File f)
      • touch

        public void touch​(File f)
      • file

        public File file​(String path)
        Creates a new file object in this directory without changing the relative path.
        Parameters:
        path - Relative path.
        Returns:
        the created file object.