Skip to content

N5Factory - urls with query and/or fragment #12

Description

@bogovicj

Currently, N5Factory.openReader and likely openWriter will fail if URI's with query and/or fragments are passed.

N5Reader n5 = new N5Factory().openReader("my-container.n5?img#fragment");

fails with

Exception in thread "main" org.janelia.saalfeldlab.n5.N5Exception$N5IOException: No container exists at my-container.n5?img#fragment
	at org.janelia.saalfeldlab.n5.N5KeyValueReader.<init>(N5KeyValueReader.java:144)

This just means code that calls it is responsible for providing only the container part. Alternatively, N5Factory could handle that itself, for example by using N5URI.getContainerPath

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions