@Test public void exists() { assertTrue(importer.exists(new FileDataSource(fileSystem.getPath("/"), "test0"))); assertTrue(importer.exists(new FileDataSource(fileSystem.getPath("/"), "test1"))); assertTrue(importer.exists(new FileDataSource(fileSystem.getPath("/"), "test2"))); assertFalse(importer.exists(new FileDataSource(fileSystem.getPath("/"), "test3"))); assertFalse(importer.exists(new FileDataSource(fileSystem.getPath("/"), "test4"))); assertFalse(importer.exists(new FileDataSource(fileSystem.getPath("/"), "testDummy"))); }
@Override public boolean exists(ReadOnlyDataSource dataSource) { try { String ext = findExtension(dataSource); return exists(dataSource, ext); } catch (IOException e) { throw new UncheckedIOException(e); } }
XMLImporter implements Importer { @Override public boolean exists(ReadOnlyDataSource dataSource) { try { String ext = findExtension(dataSource); return exists(dataSource, ext); } catch (IOException e) { throw new UncheckedIOException(e); } } }
XMLImporter implements Importer { @Override public boolean exists(ReadOnlyDataSource dataSource) { try { String ext = findExtension(dataSource); return exists(dataSource, ext); } catch (IOException e) { throw new UncheckedIOException(e); } } XMLImporter();  XMLImporter(PlatformConfig platformConfig); }
XMLImporter implements Importer { @Override public boolean exists(ReadOnlyDataSource dataSource) { try { String ext = findExtension(dataSource); return exists(dataSource, ext); } catch (IOException e) { throw new UncheckedIOException(e); } } XMLImporter();  XMLImporter(PlatformConfig platformConfig); @Override String getFormat(); @Override List<Parameter> getParameters(); @Override String getComment(); @Override boolean exists(ReadOnlyDataSource dataSource); @Override void copy(ReadOnlyDataSource fromDataSource, DataSource toDataSource); @Override Network importData(ReadOnlyDataSource dataSource, NetworkFactory networkFactory, Properties parameters); }
XMLImporter implements Importer { @Override public boolean exists(ReadOnlyDataSource dataSource) { try { String ext = findExtension(dataSource); return exists(dataSource, ext); } catch (IOException e) { throw new UncheckedIOException(e); } } XMLImporter();  XMLImporter(PlatformConfig platformConfig); @Override String getFormat(); @Override List<Parameter> getParameters(); @Override String getComment(); @Override boolean exists(ReadOnlyDataSource dataSource); @Override void copy(ReadOnlyDataSource fromDataSource, DataSource toDataSource); @Override Network importData(ReadOnlyDataSource dataSource, NetworkFactory networkFactory, Properties parameters); static final String THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND; static final String EXTENSIONS_LIST; }