public class IntervalListWriter
extends java.lang.Object
implements java.io.Closeable
IntervalList
.Constructor and Description |
---|
IntervalListWriter(java.nio.file.Path path)
Creates a new writer, writing a header to the file.
|
IntervalListWriter(java.nio.file.Path path,
SAMFileHeader header)
Creates a new writer, writing a header to the file.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the writer.
|
void |
write(Interval interval)
Writes a single interval list.
|
public IntervalListWriter(java.nio.file.Path path)
path
- a path to write to. If exists it will be overwritten.public IntervalListWriter(java.nio.file.Path path, SAMFileHeader header)
path
- a file to write to. If exists it will be overwritten.header
- the header to write.public void write(Interval interval) throws java.io.IOException
interval
- the interval to write.java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException