@Test public void testDivineDeflateParameters_JunkData() throws IOException { final byte[] junk = new byte[] {0, 1, 2, 3, 4}; Assert.assertNull( diviner.divineDeflateParameters(new ByteArrayInputStreamFactory(junk, true, false))); }
public List<DivinationResult> divineDeflateParameters(File archiveFile) throws IOException { List<DivinationResult> results = new ArrayList<DivinationResult>(); for (MinimalZipEntry minimalZipEntry : MinimalZipArchive.listEntries(archiveFile)) { JreDeflateParameters divinedParameters = null; if (minimalZipEntry.isDeflateCompressed()) { RandomAccessFileInputStreamFactory rafisFactory = new RandomAccessFileInputStreamFactory( archiveFile, minimalZipEntry.getFileOffsetOfCompressedData(), minimalZipEntry.getCompressedSize()); divinedParameters = divineDeflateParameters(rafisFactory); } results.add(new DivinationResult(minimalZipEntry, divinedParameters)); } return results; }
DefaultDeflateCompressionDiviner { public List<DivinationResult> divineDeflateParameters(File archiveFile) throws IOException { List<DivinationResult> results = new ArrayList<DivinationResult>(); for (MinimalZipEntry minimalZipEntry : MinimalZipArchive.listEntries(archiveFile)) { JreDeflateParameters divinedParameters = null; if (minimalZipEntry.isDeflateCompressed()) { RandomAccessFileInputStreamFactory rafisFactory = new RandomAccessFileInputStreamFactory( archiveFile, minimalZipEntry.getFileOffsetOfCompressedData(), minimalZipEntry.getCompressedSize()); divinedParameters = divineDeflateParameters(rafisFactory); } results.add(new DivinationResult(minimalZipEntry, divinedParameters)); } return results; } }
DefaultDeflateCompressionDiviner { public List<DivinationResult> divineDeflateParameters(File archiveFile) throws IOException { List<DivinationResult> results = new ArrayList<DivinationResult>(); for (MinimalZipEntry minimalZipEntry : MinimalZipArchive.listEntries(archiveFile)) { JreDeflateParameters divinedParameters = null; if (minimalZipEntry.isDeflateCompressed()) { RandomAccessFileInputStreamFactory rafisFactory = new RandomAccessFileInputStreamFactory( archiveFile, minimalZipEntry.getFileOffsetOfCompressedData(), minimalZipEntry.getCompressedSize()); divinedParameters = divineDeflateParameters(rafisFactory); } results.add(new DivinationResult(minimalZipEntry, divinedParameters)); } return results; }  }
DefaultDeflateCompressionDiviner { public List<DivinationResult> divineDeflateParameters(File archiveFile) throws IOException { List<DivinationResult> results = new ArrayList<DivinationResult>(); for (MinimalZipEntry minimalZipEntry : MinimalZipArchive.listEntries(archiveFile)) { JreDeflateParameters divinedParameters = null; if (minimalZipEntry.isDeflateCompressed()) { RandomAccessFileInputStreamFactory rafisFactory = new RandomAccessFileInputStreamFactory( archiveFile, minimalZipEntry.getFileOffsetOfCompressedData(), minimalZipEntry.getCompressedSize()); divinedParameters = divineDeflateParameters(rafisFactory); } results.add(new DivinationResult(minimalZipEntry, divinedParameters)); } return results; }  List<DivinationResult> divineDeflateParameters(File archiveFile); JreDeflateParameters divineDeflateParameters(
      MultiViewInputStreamFactory<?> compressedDataInputStreamFactory); }
DefaultDeflateCompressionDiviner { public List<DivinationResult> divineDeflateParameters(File archiveFile) throws IOException { List<DivinationResult> results = new ArrayList<DivinationResult>(); for (MinimalZipEntry minimalZipEntry : MinimalZipArchive.listEntries(archiveFile)) { JreDeflateParameters divinedParameters = null; if (minimalZipEntry.isDeflateCompressed()) { RandomAccessFileInputStreamFactory rafisFactory = new RandomAccessFileInputStreamFactory( archiveFile, minimalZipEntry.getFileOffsetOfCompressedData(), minimalZipEntry.getCompressedSize()); divinedParameters = divineDeflateParameters(rafisFactory); } results.add(new DivinationResult(minimalZipEntry, divinedParameters)); } return results; }  List<DivinationResult> divineDeflateParameters(File archiveFile); JreDeflateParameters divineDeflateParameters(
      MultiViewInputStreamFactory<?> compressedDataInputStreamFactory);  }