Skip to content

Commit

Permalink
- Adding comment regarding compressed files and streams
Browse files Browse the repository at this point in the history
  • Loading branch information
Yossi Farjoun committed Sep 5, 2018
1 parent a4be8c8 commit 98ada8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ public final class FastaReferenceWriter implements AutoCloseable {
* <p>
* You can specify a specific output stream to each file: the main fasta output, its index and its dictionary.
* You can only provide a compressed stream to the fastaOutput, and only in the case that an index isn't written.
*
*
* <p>
* <p>
* </p>
*
* @param fastaOutput the output fasta file path.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected static int checkBasesPerLine(final int value) {
}

/**
* Set the output fasta file to write to.
* Set the output fasta file to write to. Doesn't (currently) support compressed filenames.
* If the index file and output stream are both null and makeFaiOutput is true (default), a default index file will be created as well.
* If the dictionary file and output stream are both null and makeDictOutput is true (default), a default dictionary file will be created as well.
*
Expand All @@ -62,7 +62,7 @@ public FastaReferenceWriterBuilder setFastaFile(Path fastaFile) {
}

/**
* Set the output fasta file to write to.
* Set the output fasta file to write to. Doesn't (currently) support compressed filenames.
* If the index file and output stream are both null and makeFaiOutput is true (default), a default index file will be created as well.
* If the dictionary file and output stream are both null and makeDictOutput is true (default), a default dictionary file will be created as well.
*
Expand Down Expand Up @@ -112,7 +112,7 @@ public FastaReferenceWriterBuilder setBasesPerLine(int basesPerLine) {
}

/**
* Set the output index file to write to.
* Set the output index file to write to. Doesn't (currently) support compressed filenames.
*/
public FastaReferenceWriterBuilder setIndexFile(Path indexFile) {
this.indexFile = indexFile;
Expand All @@ -121,7 +121,7 @@ public FastaReferenceWriterBuilder setIndexFile(Path indexFile) {
}

/**
* Set the output index file to write to.
* Set the output index file to write to. Doesn't (currently) support compressed filenames.
*/
public FastaReferenceWriterBuilder setIndexFile(File indexFile) {
return setIndexFile(indexFile.toPath());
Expand All @@ -137,14 +137,14 @@ public FastaReferenceWriterBuilder setDictFile(Path dictFile) {
}

/**
* Set the output dictionary file to write to.
* Set the output dictionary file to write to. Doesn't (currently) support compressed filenames.
*/
public FastaReferenceWriterBuilder setDictFile(File dictFile) {
return setDictFile(dictFile.toPath());
}

/**
* Set the output stream for writing the reference.
* Set the output stream for writing the reference. Doesn't support compressed streams.
*
* @param fastaOutput a {@link OutputStream} for the output fasta file.
* @return this builder
Expand All @@ -157,7 +157,7 @@ public FastaReferenceWriterBuilder setFastaOutput(OutputStream fastaOutput) {
}

/**
* Set the output stream for writing the index.
* Set the output stream for writing the index. Doesn't support compressed streams.
*
* @param indexOutput a {@link OutputStream} for the output index.
* @return this builder
Expand All @@ -169,7 +169,7 @@ public FastaReferenceWriterBuilder setIndexOutput(OutputStream indexOutput) {
}

/**
* Set the output stream for writing the dictionary.
* Set the output stream for writing the dictionary. Doesn't support compressed streams.
*
* @param dictOutput a {@link OutputStream} for the output dictionary.
* @return this builder
Expand Down

0 comments on commit 98ada8d

Please sign in to comment.