@Test public void fakeZipTest() throws IOException { Files.createFile(testDir.resolve("fake.zip")); assertFalse(new ZipFileDataSource(testDir, "fake").exists("e")); }
@Override public boolean exists(String suffix, String ext) throws IOException { return exists(DataSourceUtil.getFileName(baseName, suffix, ext)); }
ZipFileDataSource implements DataSource { @Override public boolean exists(String suffix, String ext) throws IOException { return exists(DataSourceUtil.getFileName(baseName, suffix, ext)); } }
ZipFileDataSource implements DataSource { @Override public boolean exists(String suffix, String ext) throws IOException { return exists(DataSourceUtil.getFileName(baseName, suffix, ext)); } ZipFileDataSource(Path directory, String zipFileName, String baseName, DataSourceObserver observer);  ZipFileDataSource(Path directory, String zipFileName, String baseName);  ZipFileDataSource(Path directory, String baseName);  ZipFileDataSource(Path directory, String baseName, DataSourceObserver observer);  ZipFileDataSource(Path zipFile); }
ZipFileDataSource implements DataSource { @Override public boolean exists(String suffix, String ext) throws IOException { return exists(DataSourceUtil.getFileName(baseName, suffix, ext)); } ZipFileDataSource(Path directory, String zipFileName, String baseName, DataSourceObserver observer);  ZipFileDataSource(Path directory, String zipFileName, String baseName);  ZipFileDataSource(Path directory, String baseName);  ZipFileDataSource(Path directory, String baseName, DataSourceObserver observer);  ZipFileDataSource(Path zipFile); @Override String getBaseName(); @Override boolean exists(String suffix, String ext); @Override boolean exists(String fileName); @Override InputStream newInputStream(String suffix, String ext); @Override InputStream newInputStream(String fileName); @Override OutputStream newOutputStream(String fileName, boolean append); @Override OutputStream newOutputStream(String suffix, String ext, boolean append); @Override Set<String> listNames(String regex); }
ZipFileDataSource implements DataSource { @Override public boolean exists(String suffix, String ext) throws IOException { return exists(DataSourceUtil.getFileName(baseName, suffix, ext)); } ZipFileDataSource(Path directory, String zipFileName, String baseName, DataSourceObserver observer);  ZipFileDataSource(Path directory, String zipFileName, String baseName);  ZipFileDataSource(Path directory, String baseName);  ZipFileDataSource(Path directory, String baseName, DataSourceObserver observer);  ZipFileDataSource(Path zipFile); @Override String getBaseName(); @Override boolean exists(String suffix, String ext); @Override boolean exists(String fileName); @Override InputStream newInputStream(String suffix, String ext); @Override InputStream newInputStream(String fileName); @Override OutputStream newOutputStream(String fileName, boolean append); @Override OutputStream newOutputStream(String suffix, String ext, boolean append); @Override Set<String> listNames(String regex);  }