/** * * @param nRef Number of reference sequences * @param output BAM Index output file */ public BinaryBAMIndexWriter(final int nRef, final Path output) { this.nRef = nRef; try { codec = new BinaryCodec(output, true); writeHeader(); } catch (final Exception e) { throw new SAMException("Exception opening output file " + output, e); } }
/** * * @param nRef Number of reference sequences. * @param output BAM index output stream. This stream will be closed when BinaryBAMIndexWriter.close() is called. */ public BinaryBAMIndexWriter(final int nRef, final OutputStream output) { this.nRef = nRef; try { codec = new BinaryCodec(output); writeHeader(); } catch (final Exception e) { throw new SAMException("Exception opening output stream", e); } }
/** * constructor * * @param nRef Number of reference sequences * @param output BAM Index output file */ public BinaryBAMIndexWriter(final int nRef, final File output) { this.nRef = nRef; try { codec = new BinaryCodec(output, true); writeHeader(); } catch (final Exception e) { throw new SAMException("Exception opening output file " + output, e); } }
/** * * @param nRef Number of reference sequences * @param output BAM Index output file */ public BinaryBAMIndexWriter(final int nRef, final Path output) { this.nRef = nRef; try { codec = new BinaryCodec(output, true); writeHeader(); } catch (final Exception e) { throw new SAMException("Exception opening output file " + output, e); } }
/** * * @param nRef Number of reference sequences. * @param output BAM index output stream. This stream will be closed when BinaryBAMIndexWriter.close() is called. */ public BinaryBAMIndexWriter(final int nRef, final OutputStream output) { this.nRef = nRef; try { codec = new BinaryCodec(output); writeHeader(); } catch (final Exception e) { throw new SAMException("Exception opening output stream", e); } }
/** * * @param nRef Number of reference sequences. * @param output BAM index output stream. This stream will be closed when BinaryBAMIndexWriter.close() is called. */ public BinaryBAMIndexWriter(final int nRef, final OutputStream output) { this.nRef = nRef; try { codec = new BinaryCodec(output); writeHeader(); } catch (final Exception e) { throw new SAMException("Exception opening output stream", e); } }