@Test void testGetFileUnchecked() throws IOException { String fileName = "bytes.bin"; File file = fileStore.store(new ByteArrayInputStream(new byte[] {1, 2, 3}), fileName); assertEquals(file.getAbsolutePath(), fileStore.getFileUnchecked(fileName).getAbsolutePath()); }
public File getFileUnchecked(String fileName) { validatePathname(fileName); return new File(storageDir + separator + fileName); }
FileStore { public File getFileUnchecked(String fileName) { validatePathname(fileName); return new File(storageDir + separator + fileName); } }
FileStore { public File getFileUnchecked(String fileName) { validatePathname(fileName); return new File(storageDir + separator + fileName); } FileStore(String storageDir); }
FileStore { public File getFileUnchecked(String fileName) { validatePathname(fileName); return new File(storageDir + separator + fileName); } FileStore(String storageDir); FileStore inSubdir(String subdir); boolean createDirectory(String dirName); void deleteDirectory(String dirName); File store(InputStream is, String fileName); void move(String sourceDir, String targetDir); File getFile(String fileName); File getFileUnchecked(String fileName); void delete(String fileName); String getStorageDir(); }
FileStore { public File getFileUnchecked(String fileName) { validatePathname(fileName); return new File(storageDir + separator + fileName); } FileStore(String storageDir); FileStore inSubdir(String subdir); boolean createDirectory(String dirName); void deleteDirectory(String dirName); File store(InputStream is, String fileName); void move(String sourceDir, String targetDir); File getFile(String fileName); File getFileUnchecked(String fileName); void delete(String fileName); String getStorageDir();  }