Class BedReader


  • public final class BedReader
    extends Object
    BED format reader.
    Author:
    Michael Heuer
    • Method Detail

      • read

        public static Iterable<BedRecord> read​(Readable readable)
                                        throws IOException
        Read zero or more BED records from the specified readable.
        Parameters:
        readable - to read from, must not be null
        Returns:
        zero or more BED records read from the specified readable
        Throws:
        IOException - if an I/O error occurs
      • stream

        public static void stream​(Readable readable,
                                  BedListener listener)
                           throws IOException
        Stream zero or more BED records from the specified readable.
        Parameters:
        readable - readable to stream from, must not be null
        listener - event based listener callback, must not be null
        Throws:
        IOException - if an I/O error occurs