java.lang.Object
org.jooq.Source
A source of text data.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Source
of(byte[] bytes)
Create a source from binary data.static Source
Create a source from binary data using a specific character set.static Source
Create a source from binary data using a specific character set.static Source
of(byte[] bytes, CharsetDecoder charsetDecoder)
Create a source from binary data using a specific character set.static Source
Create a source from a file.static Source
Create a source from a file using a specific character set.static Source
Create a source from a file using a specific character set.static Source
of(File file, CharsetDecoder charsetDecoder)
Create a source from a file using a specific character set.static Source
of(InputStream inputStream)
Create a source from an input stream.static Source
of(InputStream inputStream, int length)
Create a source from an input stream.static Source
of(InputStream inputStream, int length, String charsetName)
Create a source from an input stream using a specific character set.static Source
of(InputStream inputStream, int length, Charset charset)
Create a source from an input stream using a specific character set.static Source
of(InputStream inputStream, int length, CharsetDecoder charsetDecoder)
Create a source from an input stream using a specific character set.static Source
of(InputStream inputStream, String charsetName)
Create a source from an input stream using a specific character set.static Source
of(InputStream inputStream, Charset charset)
Create a source from an input stream using a specific character set.static Source
of(InputStream inputStream, CharsetDecoder charsetDecoder)
Create a source from an input stream using a specific character set.static Source
Create a source from a reader.static Source
Create a source from a reader.static Source
Create a source from a string.reader()
Produce a reader from this source.Read the entirereader()
into a String, for convenience.toString()
-
Method Details
-
of
Create a source from a string. -
of
Create a source from binary data. -
of
Create a source from binary data using a specific character set. -
of
Create a source from binary data using a specific character set. -
of
Create a source from binary data using a specific character set. -
of
Create a source from a file. -
of
Create a source from a file using a specific character set. -
of
Create a source from a file using a specific character set. -
of
Create a source from a file using a specific character set. -
of
Create a source from a reader. -
of
Create a source from a reader. -
of
Create a source from an input stream. -
of
Create a source from an input stream using a specific character set. -
of
Create a source from an input stream using a specific character set. -
of
Create a source from an input stream using a specific character set. -
of
Create a source from an input stream. -
of
Create a source from an input stream using a specific character set. -
of
Create a source from an input stream using a specific character set. -
of
Create a source from an input stream using a specific character set. -
reader
Produce a reader from this source.- Throws:
IOException
- When something goes wrong creating a reader from this source.
-
readString
Read the entirereader()
into a String, for convenience.- Throws:
IOException
- When something goes wrong creating a reader from this source.
-
toString
-