/** Override this if your root might contain userInfo. */ public URI getUriWithUserInfo() { return getUri(); }
public <T> Instance<T> loadXml(Node node) throws IOException, LoaderException { // TODO: use stream instead!? try (Reader src = node.newReader()) { return loadXml(node.getUri().toString(), src); } }
/** * Returns a String representation suitable for messages. * * CAUTION: don't use to convert to a string, use instead. */ @Override public String toString() { Node working; working = getWorld().getWorking(); if (working == null || !getRoot().equals(working.getRoot())) { return getUri().toString(); } else { if (hasAncestor(working)) { return getRelative(working); } else { return Filesystem.SEPARATOR_STRING + getPath(); } } }
throw new NodeInstantiationException(uri, "file node expected, got: " + jar.getUri());