Class FileFinder

java.lang.Object
com.graphs.utils.FileFinder

public class FileFinder extends Object
This class is a general utility to access files.
Since:
2.0
Version:
JDK 1.7
Author:
Ɓukasz Malara
  • Field Details

    • RESOURCES_PATH

      public static final String RESOURCES_PATH
      This field stores a path to resources directory.
      Since:
      1.0
      See Also:
    • TRICKY_FILE_NAME

      public static final String TRICKY_FILE_NAME
      This field stores the name of wrong prepared(also called unavailable) file that is used purposely to throw an exception.
      Since:
      1.0
      See Also:
    • GRAPH_EXAMPLE

      public static final String GRAPH_EXAMPLE
      This field stores the name of a file that is used to create some graph.
      Since:
      1.0
      See Also:
    • BIPARTITE

      public static final String BIPARTITE
      This field stores the name of another file that is used to create bipartite graph.
      Since:
      1.0
      See Also:
  • Constructor Details

    • FileFinder

      public FileFinder()
  • Method Details

    • findAvailableFiles

      public static List<String> findAvailableFiles(String dir)
      This method finds the names of every available file in given directory.
      Parameters:
      dir - directory to scan through.
      Returns:
      an array of available files names.
      Since:
      1.0