Package smile.util
Interface Paths
public interface Paths
Static methods that return a Path by converting a path string or URI.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Path
getTestData
(String... path) Get the file path of a test sample dataset.getTestDataLines
(String... path) Returns the reader of a test data.static BufferedReader
getTestDataReader
(String... path) Returns the reader of a test data.
-
Field Details
-
home
Smile home directory.
-
-
Method Details
-
getTestData
Get the file path of a test sample dataset.- Parameters:
path
- the path strings to be joined to form the path.- Returns:
- the file path to the test data.
-
getTestDataReader
Returns the reader of a test data.- Parameters:
path
- the path strings to be joined to form the path.- Returns:
- the reader of the test data.
- Throws:
IOException
- when fails to create the reader.
-
getTestDataLines
Returns the reader of a test data.- Parameters:
path
- the path strings to be joined to form the path.- Returns:
- the file lines of test data.
- Throws:
IOException
- when fails to read the file.
-