Class Source

java.lang.Object
tech.tablesaw.io.Source

public class Source extends Object
  • Field Details

    • file

      protected final File file
    • reader

      protected final Reader reader
    • inputStream

      protected final InputStream inputStream
    • charset

      protected final Charset charset
  • Constructor Details

  • Method Details

    • fromString

      public static Source fromString(String s)
    • fromUrl

      public static Source fromUrl(String url) throws IOException
      Throws:
      IOException
    • file

      public File file()
    • reader

      public Reader reader()
    • inputStream

      public InputStream inputStream()
    • getCharset

      public Charset getCharset()
    • createReader

      public Reader createReader(byte[] cachedBytes) throws IOException
      If cachedBytes are not null, returns a Reader created from the cachedBytes. Otherwise, returns a Reader from the underlying source.
      Throws:
      IOException