Package

za.co.absa.cobrix.cobol.reader

stream

Permalink

package stream

Visibility
  1. Public
  2. All

Type Members

  1. class FSStream extends SimpleStream

    Permalink
  2. class SimpleMemoryStream extends AnyRef

    Permalink

    This is a stream with a lookback buffer.

    This is a stream with a lookback buffer. It allows you to read bytes from it and sometime go back and fetch previous bytes. It also supports searching for a specific sequence of bytes.

    The pattern of usage for this stream is this.

    • Create an instance of za.co.absa.cobrix.cobol.reader.stream.SimpleStream.
    • Create an instance of SimpleMemoryStream and pass the lookback buffer size and the object created at the first step.
    • Search a sequence of bytes in the stream.
    • Once the sequence of bytes is found you can fetch bytes before the sequence and after it by providing the specific indexes. This memory stream provides getBytes interface which accepts indexes. The stream will be read sequentially and once values from bigger indexes are read you can look back only limited number of bytes.
  3. trait SimpleStream extends AnyRef

    Permalink

    This trait defines a simple abstraction for processing variable length record data.

Ungrouped