Package qupath.lib.images.servers
Class ImageServerBuilder.DefaultImageServerBuilder<T>
java.lang.Object
qupath.lib.images.servers.ImageServerBuilder.AbstractServerBuilder<T>
qupath.lib.images.servers.ImageServerBuilder.DefaultImageServerBuilder<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
ImageServerBuilder.ServerBuilder<T>
- Enclosing interface:
ImageServerBuilder<T>
public static class ImageServerBuilder.DefaultImageServerBuilder<T>
extends ImageServerBuilder.AbstractServerBuilder<T>
Default
ImageServerBuilder.ServerBuilder
that requires a URI and (optional) array of String arguments to create an ImageServer
with the help of a ImageServerBuilder
.-
Method Summary
Modifier and TypeMethodDescriptionprotected ImageServer
<T> static <T> ImageServerBuilder.ServerBuilder
<T> createInstance
(Class<? extends ImageServerBuilder<T>> providerClass, URI uri, String... args) Create aImageServerBuilder.ServerBuilder
that reads an image from a URI and args, using the default server metadata.static <T> ImageServerBuilder.ServerBuilder
<T> createInstance
(Class<? extends ImageServerBuilder<T>> providerClass, ImageServerMetadata metadata, URI uri, String... args) Create aImageServerBuilder.ServerBuilder
that reads an image from a URI and args, and uses the specified metadata (possibly replacing the default metadata).boolean
String[]
getArgs()
Get the args array.getURI()
Get the URI used by this builder.getURIs()
Get a list of URIs required by this builder.int
hashCode()
toString()
updateURIs
(Map<URI, URI> updateMap) Update the URIs required by this builder.Methods inherited from class qupath.lib.images.servers.ImageServerBuilder.AbstractServerBuilder
build, getMetadata
-
Method Details
-
createInstance
public static <T> ImageServerBuilder.ServerBuilder<T> createInstance(Class<? extends ImageServerBuilder<T>> providerClass, ImageServerMetadata metadata, URI uri, String... args) Create aImageServerBuilder.ServerBuilder
that reads an image from a URI and args, and uses the specified metadata (possibly replacing the default metadata).- Type Parameters:
T
-- Parameters:
providerClass
-metadata
-uri
-args
-- Returns:
-
createInstance
public static <T> ImageServerBuilder.ServerBuilder<T> createInstance(Class<? extends ImageServerBuilder<T>> providerClass, URI uri, String... args) Create aImageServerBuilder.ServerBuilder
that reads an image from a URI and args, using the default server metadata.- Type Parameters:
T
-- Parameters:
providerClass
-uri
-args
-- Returns:
-
getURI
Get the URI used by this builder.- Returns:
-
getArgs
Get the args array. This returns a clone of any original array.- Returns:
-
buildOriginal
- Specified by:
buildOriginal
in classImageServerBuilder.AbstractServerBuilder<T>
- Throws:
Exception
-
getURIs
Description copied from interface:ImageServerBuilder.ServerBuilder
Get a list of URIs required by this builder. The purpose is to identify resources that are required.- Returns:
- See Also:
-
updateURIs
Description copied from interface:ImageServerBuilder.ServerBuilder
Update the URIs required by this builder. The purpose is to handle resources that may have moved (e.g. files). Because ServerBuilder should be immutable, this returns a new builder.- Parameters:
updateMap
-- Returns:
- See Also:
-
toString
-
hashCode
public int hashCode() -
equals
-