Package smile.util

Interface Paths


public interface Paths
Static methods that return a Path by converting a path string or URI.
  • Field Details

    • home

      static final String home
      Smile home directory.
  • Method Details

    • getTestData

      static Path getTestData(String... path)
      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

      static BufferedReader getTestDataReader(String... path) throws IOException
      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

      static Stream<String> getTestDataLines(String... path) throws IOException
      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.