Skip to content

Commit f919140

Browse files
gab1onectrueden
authored andcommitted
FileHandle: Add constructor accepting an URI
1 parent 1b1c662 commit f919140

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/scijava/io/location/FileLocation.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ public FileLocation(final String path) {
5151
this(new File(path));
5252
}
5353

54+
public FileLocation(final URI path) {
55+
this(new File(path));
56+
}
57+
5458
// -- FileLocation methods --
5559

5660
/** Gets the associated {@link File}. */

0 commit comments

Comments
 (0)