Skip to content

Commit a5b8a17

Browse files
committed
Add constructor taking wrapped location directly
1 parent 3569b55 commit a5b8a17

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111

1212
<artifactId>scijava-io-http</artifactId>
13-
<version>0.2.2-SNAPSHOT</version>
13+
<version>0.3.0-SNAPSHOT</version>
1414

1515
<name>SciJava I/O: HTTP</name>
1616
<description>SciJava I/O support for HTTP/HTTPS.</description>

‎src/main/java/org/scijava/io/http/HTTPHandle.java‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ public class HTTPHandle extends AbstractSeekableStreamHandle<HTTPLocation> {
6969
/** cache for the length of the stream */
7070
private long length = -1l;
7171

72+
// -- Constructors --
73+
74+
public HTTPHandle() { }
75+
76+
public HTTPHandle(final HTTPLocation location) {
77+
set(location);
78+
}
79+
7280
// -- StreamHandle methods --
7381

7482
@Override

0 commit comments

Comments
 (0)