From eda770570c403f9c9b34dd64084b0cabbddbcdb2 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 16 Nov 2013 13:17:34 -0500 Subject: [PATCH] added javadoc comments Former-commit-id: 0c3f625e56e09965a34b3707dcea4598408eaea9 --- .../analyzer/ArchiveAnalyzer.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/ArchiveAnalyzer.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/ArchiveAnalyzer.java index 29337232b..8aaf39e6b 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/ArchiveAnalyzer.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/ArchiveAnalyzer.java @@ -286,6 +286,15 @@ public class ArchiveAnalyzer extends AbstractAnalyzer implements Analyzer { } } + /** + * Extracts files from an archive. + * + * @param input the archive to extract files from + * @param destination the location to write the files too + * @param engine the dependency-check engine + * @throws ArchiveExtractionException thrown if there is an exception + * extracting files from the archive + */ private void extractArchive(ArchiveInputStream input, File destination, Engine engine) throws ArchiveExtractionException { ArchiveEntry entry; try { @@ -351,6 +360,14 @@ public class ArchiveAnalyzer extends AbstractAnalyzer implements Analyzer { } } + /** + * Decompresses a file. + * + * @param inputStream the compressed file + * @param outputFile the location to write the decompressed file + * @throws ArchiveExtractionException thrown if there is an exception + * decompressing the file + */ private void decompressFile(CompressorInputStream inputStream, File outputFile) throws ArchiveExtractionException { FileOutputStream out = null; try {