/** * Constructor * @param file Name of FASTQ being read, or null if not known. * @param reader input reader . Will be closed by the close method * @param skipBlankLines should we skip blank lines ? */ public FastqReader(final File file, final BufferedReader reader,boolean skipBlankLines) { this.fastqFile = file; this.reader = reader; this.skipBlankLines = skipBlankLines; this.nextRecord = readNextRecord(); }
/** * Constructor * @param file Name of FASTQ being read, or null if not known. * @param reader input reader . Will be closed by the close method * @param skipBlankLines should we skip blank lines ? */ public FastqReader(final File file, final BufferedReader reader,boolean skipBlankLines) { this.fastqFile = file; this.reader = reader; this.nextRecord = readNextRecord(); this.skipBlankLines = skipBlankLines; }
/** * Constructor * @param file Name of FASTQ being read, or null if not known. * @param reader input reader . Will be closed by the close method * @param skipBlankLines should we skip blank lines ? */ public FastqReader(final File file, final BufferedReader reader,boolean skipBlankLines) { this.fastqFile = file; this.reader = reader; this.skipBlankLines = skipBlankLines; this.nextRecord = readNextRecord(); }
@Override public FastqRecord next() { if (!hasNext()) { throw new NoSuchElementException("next() called when !hasNext()"); } final FastqRecord rec = nextRecord; nextRecord = readNextRecord(); return rec; }
/** * Constructor * @param file of FASTQ to read read. Will be opened with htsjdk.samtools.util.IOUtil.openFileForBufferedReading * @param skipBlankLines should we skip blank lines ? */ public FastqReader(final File file, final boolean skipBlankLines) { this.skipBlankLines=skipBlankLines; fastqFile = file; reader = IOUtil.openFileForBufferedReading(fastqFile); nextRecord = readNextRecord(); }
public FastqRecord next() { if (!hasNext()) { throw new NoSuchElementException("next() called when !hasNext()"); } final FastqRecord rec = nextRecord; nextRecord = readNextRecord(); return rec; }
@Override public FastqRecord next() { if (!hasNext()) { throw new NoSuchElementException("next() called when !hasNext()"); } final FastqRecord rec = nextRecord; nextRecord = readNextRecord(); return rec; }