package raw
- Alphabetic
- Public
- All
Type Members
- case class FixedBlockParameters(recordLength: Option[Int], blockLength: Option[Int], recordsPerBlock: Option[Int]) extends Product with Serializable
- class FixedBlockRawRecordExtractor extends Serializable with RawRecordExtractor
-
case class
RawRecordContext(startingRecordNumber: Long, inputStream: SimpleStream, headerStream: SimpleStream, copybook: Copybook, rdwDecoder: RecordHeaderDecoder, bdwDecoder: RecordHeaderDecoder, additionalInfo: String) extends Product with Serializable
- startingRecordNumber
A record number the input stream is pointing to (zero-based).
- inputStream
An input stream pointing to the beginning of a file or a record in a file. The record extractor should close the stream when the end of file is reached.
- headerStream
A stream pointing to the beginning of the file, even if inputStream is pointing to a record in the middle. The record extractor should close the stream when it is no longer needed.
- copybook
A copybook of the input stream.
- additionalInfo
A string provided by a client for the raw record extractor.
-
trait
RawRecordExtractor extends Iterator[Array[Byte]]
This trait represents a contract for extracting raw records from a stream of bytes.
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.
-
class
TextFullRecordExtractor extends Serializable with RawRecordExtractor
This implementation of a record extractor for ASCII test files.
This implementation of a record extractor for ASCII test files.
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.
Empty lines (ones that contain only LF / CRLF) are skipped.
The implementation is optimized for performance, so might be not obviously readable. Hopefully, comments will help anyone reading this.
-
class
TextRecordExtractor extends Serializable with RawRecordExtractor
This implementation of a record extractor for ASCII test files.
This implementation of a record extractor for ASCII test files.
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.
Empty lines (ones that contain only LF / CRLF) are skipped.
The implementation is optimized for performance, so might be not obviously readable. Hopefully, comments will help anyone reading this.
-
class
VarOccursRecordExtractor extends Serializable with RawRecordExtractor
This implementation of a record extractor A raw record is an array of bytes.
This implementation of a record extractor 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.
- class VariableBlockVariableRecordExtractor extends Serializable with RawRecordExtractor
Value Members
- object FixedBlockParameters extends Serializable
- object RawRecordExtractorFactory