Skip to content

Commit

Permalink
Add constructor taking wrapped location directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Aug 6, 2023
1 parent 3569b55 commit a5b8a17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>

<artifactId>scijava-io-http</artifactId>
<version>0.2.2-SNAPSHOT</version>
<version>0.3.0-SNAPSHOT</version>

<name>SciJava I/O: HTTP</name>
<description>SciJava I/O support for HTTP/HTTPS.</description>
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/org/scijava/io/http/HTTPHandle.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ public class HTTPHandle extends AbstractSeekableStreamHandle<HTTPLocation> {
/** cache for the length of the stream */
private long length = -1l;

// -- Constructors --

public HTTPHandle() { }

public HTTPHandle(final HTTPLocation location) {
set(location);
}

// -- StreamHandle methods --

@Override
Expand Down

0 comments on commit a5b8a17

Please sign in to comment.