public class VCFIteratorBuilder
extends java.lang.Object
VCFIterator
Example:
VCFIterator r = new VCFIteratorBuilder().open(System.in); while (r.hasNext()) { System.out.println(r.next()); } r.close();
VCFIterator
Constructor and Description |
---|
VCFIteratorBuilder() |
Modifier and Type | Method and Description |
---|---|
VCFIterator |
open(java.io.File file)
creates a VCF iterator from a File
|
VCFIterator |
open(java.io.InputStream in)
creates a VCF iterator from an input stream It detects if the stream is a
BCF stream or a GZipped stream.
|
VCFIterator |
open(java.nio.file.Path path)
creates a VCF iterator from a Path
|
VCFIterator |
open(java.nio.file.Path path,
java.util.function.Function<java.nio.channels.SeekableByteChannel,java.nio.channels.SeekableByteChannel> wrapper)
creates a VCF iterator from a Path
|
VCFIterator |
open(java.lang.String path)
creates a VCF iterator from a URI It detects if the stream is a BCF
stream or a GZipped stream.
|
VCFIterator |
open(java.lang.String path,
java.util.function.Function<java.nio.channels.SeekableByteChannel,java.nio.channels.SeekableByteChannel> wrapper)
creates a VCF iterator from a URI It detects if the stream is a BCF
stream or a GZipped stream.
|
public VCFIterator open(java.io.InputStream in) throws java.io.IOException
in
- inputstreamjava.io.IOException
public VCFIterator open(java.lang.String path) throws java.io.IOException
path
- the Pathjava.io.IOException
public VCFIterator open(java.nio.file.Path path) throws java.io.IOException
path
- the pathjava.io.IOException
public VCFIterator open(java.nio.file.Path path, java.util.function.Function<java.nio.channels.SeekableByteChannel,java.nio.channels.SeekableByteChannel> wrapper) throws java.io.IOException
path
- the file pathwrapper
- wrapper for SeekablePathStream
. Can be null.java.io.IOException
public VCFIterator open(java.lang.String path, java.util.function.Function<java.nio.channels.SeekableByteChannel,java.nio.channels.SeekableByteChannel> wrapper) throws java.io.IOException
path
- the Pathwrapper
- wrapper for SeekablePathStream
. Can be null.java.io.IOException
public VCFIterator open(java.io.File file) throws java.io.IOException
file
- the file (can be bcf, vcf, vcf.gz)java.io.IOException