-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tom Sellman <[email protected]>
- Loading branch information
1 parent
0c9b333
commit 33458a4
Showing
3 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
modules/nf-httpfs/src/main/nextflow/file/http/HttpOpenOption.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package nextflow.file.http | ||
|
||
import java.nio.file.OpenOption | ||
|
||
/** | ||
* Options which can be used to modify how an HTTP resource is opened as a file. | ||
*/ | ||
enum HttpOpenOption implements OpenOption { | ||
/** | ||
* If this option is supplied when opening an HTTP file, no exception will be thrown if the stream is | ||
* closed before all data has been received. | ||
* | ||
* This can be useful, for example, to read just the first line without downloading the whole file. | ||
*/ | ||
ALLOW_EARLY_CLOSE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters