Returns the byte offset of the next record.
Returns the byte offset of the next record.
The offset should point to the absolute beginning of the record, e.g. including headers, so that if a record extractor is started from this offset it would be able to extract the record by invoking .next().
(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
Clients of 'spark-cobol' can pass additional information to custom record header parsers using
Clients of 'spark-cobol' can pass additional information to custom record header parsers using
.option("re_additional_info", "...anything as a string...")
If a client provides any additional info the method will be executed just after constructing the record header parser.
Built-in record header parsers ignore the additional info. This info string is intended for custom record header parsers.
A string provided by a client for the record header parser.
This trait represents a contract for extracting raw records from a stream of bytes. A raw record is an array of bytes.
Record extractors are used for in situations where the size of records in a file is not fixed and cannot be determined neither from the copybook nor from record headers.