Documentation of 'smile.data.parser.IOUtils' Java class
IOUtils
smile.data.parser

Class IOUtils



  • public class IOUtils
    extends java.lang.Object
    Simple IO stream manipulation utilities.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.io.File getTestDataFile(java.lang.String path)
      Get the file object of sample dataset.
      static java.lang.String getTestDataPath(java.lang.String path)
      Get the file path of sample dataset.
      static java.io.BufferedReader getTestDataReader(java.lang.String path)
      Get the reader of sample datasets.
      static java.util.List<java.lang.String> readLines(java.io.InputStream input)
      Returns the lines of an InputStream as a list of Strings.
      static java.util.List<java.lang.String> readLines(java.io.InputStream input, java.nio.charset.Charset charset)
      Returns the lines of an InputStream as a list of Strings.
      static java.util.List<java.lang.String> readLines(java.io.Reader input)
      Returns the lines of a Reader as a list of Strings.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTestDataPath

        public static java.lang.String getTestDataPath(java.lang.String path)
        Get the file path of sample dataset.
      • getTestDataFile

        public static java.io.File getTestDataFile(java.lang.String path)
        Get the file object of sample dataset.
      • getTestDataReader

        public static java.io.BufferedReader getTestDataReader(java.lang.String path)
                                                        throws java.io.FileNotFoundException
        Get the reader of sample datasets.
        Throws:
        java.io.FileNotFoundException
      • readLines

        public static java.util.List<java.lang.String> readLines(java.io.InputStream input)
                                                          throws java.io.IOException
        Returns the lines of an InputStream as a list of Strings.
        Parameters:
        input - the InputStream to read from.
        Returns:
        the list of lines.
        Throws:
        java.io.IOException
      • readLines

        public static java.util.List<java.lang.String> readLines(java.io.InputStream input,
                                                                 java.nio.charset.Charset charset)
                                                          throws java.io.IOException
        Returns the lines of an InputStream as a list of Strings.
        Parameters:
        input - the InputStream to read from.
        charset - a charset.
        Returns:
        the list of lines.
        Throws:
        java.io.IOException
      • readLines

        public static java.util.List<java.lang.String> readLines(java.io.Reader input)
                                                          throws java.io.IOException
        Returns the lines of a Reader as a list of Strings.
        Parameters:
        input - the Reader to read from.
        Returns:
        the list of lines.
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.