Class RecordReader<R extends Record>
Javadoc 27 generates this reference during each site build from the exported packages and the annotation processor. The Java guide shows the API in use.
java.lang.Object
dev.gecode.iris.RecordReader<R>
- Type Parameters:
R- the record type
Reads data into records of type
R. Spec.reader(Class, MethodHandles.Lookup) makes one and checks the record's
components against the entries of the reader spec, so a read can fail only as Spec.read(byte[]) does.
A reader is immutable, so threads can share it.
-
Method Summary
Modifier and TypeMethodDescriptionread(byte[] input) Reads an input without an origin or parameters.Reads an input without parameters.Reads an input.Reads an input without an origin or parameters.Reads an input without parameters.Reads an input.Reads a file without parameters.Reads a file.
-
Method Details
-
read
Reads an input without an origin or parameters.- Parameters:
input- the bytes of the input- Returns:
- the record of the data read
- Throws:
IrisException- for the first error
-
read
Reads an input without parameters.- Parameters:
input- the bytes of the inputorigin- the name of the input in errors- Returns:
- the record of the data read
- Throws:
IrisException- for the first error
-
read
Reads an input.- Parameters:
input- the bytes of the inputorigin- the name of the input in errorsparams- the parameters- Returns:
- the record of the data read
- Throws:
IrisException- for the first error
-
read
Reads an input without an origin or parameters.- Parameters:
input- the text of the input- Returns:
- the record of the data read
- Throws:
IrisException- for the first errorIllegalArgumentException- if the text has an unpaired surrogate, which has no UTF-8 form
-
read
Reads an input without parameters.- Parameters:
input- the text of the inputorigin- the name of the input in errors- Returns:
- the record of the data read
- Throws:
IrisException- for the first errorIllegalArgumentException- if the text has an unpaired surrogate, which has no UTF-8 form
-
read
Reads an input.- Parameters:
input- the text of the inputorigin- the name of the input in errorsparams- the parameters- Returns:
- the record of the data read
- Throws:
IrisException- for the first errorIllegalArgumentException- if the text has an unpaired surrogate, which has no UTF-8 form
-
read
Reads a file without parameters. Its path is the origin of the input.- Parameters:
input- the file- Returns:
- the record of the data read
- Throws:
IrisException- for the first errorUncheckedIOException- if the file cannot be read
-
read
Reads a file. Its path is the origin of the input.- Parameters:
input- the fileparams- the parameters- Returns:
- the record of the data read
- Throws:
IrisException- for the first errorUncheckedIOException- if the file cannot be read
-