public interface Location
Analogous to a uniform
resource identifier (URI
), a location identifies where
the data resides, without necessarily specifying how to access that
data. The DataHandle
interface defines a plugin that knows how to
read and/or write bytes for a particular kind of location.
Modifier and Type | Method and Description |
---|---|
default String |
defaultName()
Gets the default name used when no explicit name is assigned.
|
default String |
getName()
Gets a (typically short) name expressing this location.
|
default URI |
getURI()
Gets the location expressed as a
URI , or null if the location
cannot be expressed as such. |
default URI getURI()
URI
, or null if the location
cannot be expressed as such.default String getName()
default String defaultName()
Note: this is mostly intended for debugging, since most kinds of
Location
will assign some non-default name. But in cases where that
does not occur, this value can be useful to detect the situation.
Copyright © 2015–2022 SciJava. All rights reserved.