Class IntervalListWriter

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class IntervalListWriter
    extends Object
    implements Closeable
    Writes out the list of intervals to the supplied file. This class is particularly useful if we have many intervals to write, such that they all cannot be held in memory, for example in an IntervalList.
    • Constructor Detail

      • IntervalListWriter

        public IntervalListWriter​(Path path)
        Creates a new writer, writing a header to the file.
        Parameters:
        path - a path to write to. If exists it will be overwritten.
      • IntervalListWriter

        public IntervalListWriter​(Path path,
                                  SAMFileHeader header)
        Creates a new writer, writing a header to the file.
        Parameters:
        path - a file to write to. If exists it will be overwritten.
        header - the header to write.