/** * Determines if a storage with the given URI already exists. * * @param uri Storage URI. * @throws java.io.IOException in case of I/O error. * @return a boolean. */ protected boolean exists(URI uri) throws IOException { return exists(getPath(uri)); }
factory = Builder.checkFactory(rrdUri, factory); if (!factory.exists(rrdUri)) { throw new FileNotFoundException("Could not open " + rrdUri + " [non existent]");
if (!factory.exists(path)) { throw new FileNotFoundException("Could not open " + path + " [non existent]");