Skip to content

Commit a5b8a17

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

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy