Package tech.tablesaw.io
Class Source
java.lang.Object
tech.tablesaw.io.Source
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Charset
protected final File
protected final InputStream
protected final Reader
-
Constructor Summary
ConstructorsConstructorDescriptionSource
(InputStream inputStream) Source
(InputStreamReader reader) Source
(InputStream inputStream, Charset charset) -
Method Summary
Modifier and TypeMethodDescriptioncreateReader
(byte[] cachedBytes) If cachedBytes are not null, returns a Reader created from the cachedBytes.file()
static Source
fromString
(String s) static Source
reader()
-
Field Details
-
file
-
reader
-
inputStream
-
charset
-
-
Constructor Details
-
Source
-
Source
-
Source
-
Source
-
Source
-
Source
-
-
Method Details
-
fromString
-
fromUrl
- Throws:
IOException
-
file
-
reader
-
inputStream
-
getCharset
-
createReader
If cachedBytes are not null, returns a Reader created from the cachedBytes. Otherwise, returns a Reader from the underlying source.- Throws:
IOException
-