Package bref

Class Bref3Reader

java.lang.Object
bref.Bref3Reader

public final class Bref3Reader extends Object

Class Bref3Reader contains methods for reading a bref3 (binary reference format version 3) file.

Instances of class Bref3Reader are not thread-safe.

Methods of this class will terminate the Java Virtual Machine with an error message if an I/O error or file format error is detected.

  • Constructor Details

    • Bref3Reader

      public Bref3Reader(File source, DataInput dataIn)
      Constructs a new Bref3Reader instance.
      Parameters:
      source - the source bref3 file or null if the bref3 file is read from stdin
      dataIn - a DataInput instance reading from a bref3 file
      Throws:
      IllegalArgumentException - if a format error is detected in a line of the specified bref3 file
      NullPointerException - if (dataIn == null)
    • Bref3Reader

      public Bref3Reader(File source, DataInput dataIn, Filter<String> sampleFilter, Filter<Marker> markerFilter)
      Constructs a new Bref3Reader instance.
      Parameters:
      source - the source bref3 file or null if the bref3 file is read from stdin
      dataIn - a DataInput instance reading from a bref3 file
      sampleFilter - a sample filter
      markerFilter - a marker filter
      Throws:
      IllegalArgumentException - if a format error is detected in a line of the specified bref3 file
      NullPointerException - if (dataIn == null) || (sampleFilter == null) || (markerFilter == null)
  • Method Details