@Test(expected = RuntimeException.class) public void test_exception_thrown_on_bad_fixity() throws IOException { FileSystemArchiveFile af = new FileSystemArchiveFile("mime", "badFixity", FILE_NAME, TEST_DIRECTORY); af.toStream(); }
public InputStream toStream() throws IOException { File archiveFile = new File(generateFilePath()); checkMd5Of(archiveFile); return new FileInputStream(archiveFile); }
FileSystemArchiveFile extends ArchiveFile { public InputStream toStream() throws IOException { File archiveFile = new File(generateFilePath()); checkMd5Of(archiveFile); return new FileInputStream(archiveFile); } }
FileSystemArchiveFile extends ArchiveFile { public InputStream toStream() throws IOException { File archiveFile = new File(generateFilePath()); checkMd5Of(archiveFile); return new FileInputStream(archiveFile); } FileSystemArchiveFile(String mimeType, String originalFixity, String fileName, String filesDirectory); }
FileSystemArchiveFile extends ArchiveFile { public InputStream toStream() throws IOException { File archiveFile = new File(generateFilePath()); checkMd5Of(archiveFile); return new FileInputStream(archiveFile); } FileSystemArchiveFile(String mimeType, String originalFixity, String fileName, String filesDirectory); InputStream toStream(); File copyStreamToDirectory(String directory); String generateFilePath(); }
FileSystemArchiveFile extends ArchiveFile { public InputStream toStream() throws IOException { File archiveFile = new File(generateFilePath()); checkMd5Of(archiveFile); return new FileInputStream(archiveFile); } FileSystemArchiveFile(String mimeType, String originalFixity, String fileName, String filesDirectory); InputStream toStream(); File copyStreamToDirectory(String directory); String generateFilePath();  }