Package com.graphs.utils
Class FileFinder
java.lang.Object
com.graphs.utils.FileFinder
This class is a general utility to access files.
- Since:
- 2.0
- Version:
- JDK 1.7
- Author:
- Ćukasz Malara
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
This field stores the name of another file that is used to create bipartite graph.static final String
This field stores the name of a file that is used to create some graph.static final String
This field stores a path to resources directory.static final String
This field stores the name of wrong prepared(also called unavailable) file that is used purposely to throw an exception. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindAvailableFiles
(String dir) This method finds the names of every available file in given directory.
-
Field Details
-
RESOURCES_PATH
This field stores a path to resources directory.- Since:
- 1.0
- See Also:
-
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
This field stores the name of a file that is used to create some graph.- Since:
- 1.0
- See Also:
-
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
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
-