Class Folder

java.lang.Object
it.ramecera.salad.file.Folder

public class Folder
extends java.lang.Object

Processing of lists of files contained in a directory.

Company: Rameceraâ„¢
Creation date: 2020-04-09
Last updated: 2020-04-19

Changes:

Author:
M. Maglioni
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.util.List<FileBase> fbE
    list of the files, with some their properties
  • Constructor Summary

    Constructors 
    Constructor Description
    Folder()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.lang.String> dirImmersion​(java.lang.String y, java.lang.String pattern)
    Production of the list of directories of a system of directories, filtered according to a pattern.
    java.util.List<java.io.File> dirObjects​(java.lang.String y)
    Production of the list of subdirectories of a directory.
    java.lang.String[] elencoFile​(java.lang.String filter, java.lang.String y)
    Production of the list of files of a directory, filtered according to a pattern.
    java.util.List<FileBase> fileImmersion​(java.lang.String y)
    Production of the list of files of a system of directories.
    java.io.File[] fileObjects​(java.lang.String filter, java.lang.String y)
    Production of the list of files of a directory, filtered according to a pattern.
    java.util.List<java.io.File> oggettiDireOrdinaAlfa​(java.lang.String y)
    Production of the list of subdirectories of a directory.
    java.util.List<java.io.File> oggettiDireOrdinaAlfa​(java.lang.String filter, java.lang.String y)
    Production of the list of subdirectories of a directory.
    java.util.List<java.io.File> oggettiDireOrdinaModi​(java.lang.String y)
    Production of the list of subdirectories of a directory.
    java.util.List<java.io.File> oggettiFileOrdinaAlfa​(java.lang.String filter, java.lang.String y)
    Production of the list of files of a directory, filtered according to a pattern.
    java.util.List<java.io.File> oggettiFileOrdinaModi​(java.lang.String filter, java.lang.String y)
    Production of the list of files of a directory, filtered according to a pattern.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • fbE

      public java.util.List<FileBase> fbE
      list of the files, with some their properties
  • Constructor Details

  • Method Details

    • fileObjects

      public java.io.File[] fileObjects​(java.lang.String filter, java.lang.String y)

      Production of the list of files of a directory, filtered according to a pattern. It differs from the listFile method in that it produces an array of File objects and not simply their names.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      filter - the pattern to filter the files, according to the codes of the class java.util.regex.Pattern.
      y - the path where to search for files
      Returns:
      array of strings with the found files
    • oggettiFileOrdinaModi

      public java.util.List<java.io.File> oggettiFileOrdinaModi​(java.lang.String filter, java.lang.String y)

      Production of the list of files of a directory, filtered according to a pattern. It differs from the fileObjects method in that it produces an array of file objects sorted by "Last update", and not simply their names.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      filter - the pattern to filter the files, according to the codes of the class java.util.regex.Pattern.
      y - the path where to search for files
      Returns:
      array of strings with the found files
    • dirObjects

      public java.util.List<java.io.File> dirObjects​(java.lang.String y)

      Production of the list of subdirectories of a directory. It differs from the objectsFile method in that it produces an array of File objects sorted by Last update, and not simply their names.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      y - the path where to search for files
      Returns:
      array of strings with directories found according to the codes of the java.util.regex.Pattern class.
    • oggettiDireOrdinaModi

      public java.util.List<java.io.File> oggettiDireOrdinaModi​(java.lang.String y)

      Production of the list of subdirectories of a directory. It differs from the objectsFile method in that it produces an array of File objects sorted by Last update, and not simply their names.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      y - the path where to search for files
      Returns:
      array of strings with files found according to the codes of the java.util.regex.Pattern class.
    • oggettiFileOrdinaAlfa

      public java.util.List<java.io.File> oggettiFileOrdinaAlfa​(java.lang.String filter, java.lang.String y)

      Production of the list of files of a directory, filtered according to a pattern. It differs from the objectsFile method in that it produces an array of File objects sorted by Last update, and not simply their names.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      filter - the pattern to filter the files, according to the codes of the class java.util.regex.Pattern.
      y - the path where to search for files
      Returns:
      array of strings with the found files
    • oggettiDireOrdinaAlfa

      public java.util.List<java.io.File> oggettiDireOrdinaAlfa​(java.lang.String y)

      Production of the list of subdirectories of a directory. It differs from the ObjectsDire method in that it produces an array of File objects sorted by date of last modification, and not simply their names.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      y - the path where to search for files
      Returns:
      array of strings with files found according to the codes of the java.util.regex.Pattern class.
    • oggettiDireOrdinaAlfa

      public java.util.List<java.io.File> oggettiDireOrdinaAlfa​(java.lang.String filter, java.lang.String y)

      Production of the list of subdirectories of a directory. It differs from the ObjectsDire method in that it produces an array of File objects sorted by date of last modification, and not simply their names.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      y - the path where to search for files
      filter - filter for selecting files
      Returns:
      array of strings with files found according to the codes of the java.util.regex.Pattern class.
    • elencoFile

      public java.lang.String[] elencoFile​(java.lang.String filter, java.lang.String y)

      Production of the list of files of a directory, filtered according to a pattern.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      filter - the pattern to filter the files, according to the codes of the class java.util.regex.Pattern.
      y - the path where to search for files
      Returns:
      array of strings with the found files
    • fileImmersion

      public java.util.List<FileBase> fileImmersion​(java.lang.String y)

      Production of the list of files of a system of directories.

      Company: Rameceraâ„¢
      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      y - input directory
      Returns:
      the file list
    • dirImmersion

      public java.util.List<java.lang.String> dirImmersion​(java.lang.String y, java.lang.String pattern)

      Production of the list of directories of a system of directories, filtered according to a pattern.

      Company: Rameceraâ„¢
      Creation date: 2020-09-08
      Last updated: 2020-09-08

      Parameters:
      y - input directory
      pattern - obvious
      Returns:
      the file list