How can I archive two files in java?
I thought of code like:
public void archiveFiles(FileInputStream file1, FileInputStream file2, String fileName) throws IOException, ArchiveException {
ZipArchiveOutputStream zipArchiveOutputStream = new ZipArchiveOutputStream(new File(fileName));
ZipArchiveEntry zipArchiveEntry = new ZipArchiveEntry("");
zipArchiveEntry.setSize(subpoenaFile.getChannel().size());
zipArchiveOutputStream.putArchiveEntry(zipArchiveEntry);
But I am stuck; can someone help me completing this?