You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TestAllFiles.java 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. /* ====================================================================
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. ==================================================================== */
  15. package org.apache.poi;
  16. import static org.junit.Assert.assertFalse;
  17. import static org.junit.Assert.assertNotNull;
  18. import static org.junit.Assert.fail;
  19. import java.io.BufferedInputStream;
  20. import java.io.File;
  21. import java.io.FileInputStream;
  22. import java.io.InputStream;
  23. import java.util.ArrayList;
  24. import java.util.Arrays;
  25. import java.util.Collections;
  26. import java.util.HashMap;
  27. import java.util.HashSet;
  28. import java.util.List;
  29. import java.util.Locale;
  30. import java.util.Map;
  31. import java.util.Set;
  32. import org.apache.poi.hssf.record.crypto.Biff8EncryptionKey;
  33. import org.apache.poi.poifs.crypt.Decryptor;
  34. import org.apache.poi.stress.AbstractFileHandler;
  35. import org.apache.poi.stress.FileHandler;
  36. import org.apache.poi.stress.HDGFFileHandler;
  37. import org.apache.poi.stress.HMEFFileHandler;
  38. import org.apache.poi.stress.HPBFFileHandler;
  39. import org.apache.poi.stress.HPSFFileHandler;
  40. import org.apache.poi.stress.HSLFFileHandler;
  41. import org.apache.poi.stress.HSMFFileHandler;
  42. import org.apache.poi.stress.HSSFFileHandler;
  43. import org.apache.poi.stress.HWPFFileHandler;
  44. import org.apache.poi.stress.OPCFileHandler;
  45. import org.apache.poi.stress.POIFSFileHandler;
  46. import org.apache.poi.stress.XDGFFileHandler;
  47. import org.apache.poi.stress.XSLFFileHandler;
  48. import org.apache.poi.stress.XSSFBFileHandler;
  49. import org.apache.poi.stress.XSSFFileHandler;
  50. import org.apache.poi.stress.XWPFFileHandler;
  51. import org.apache.tools.ant.DirectoryScanner;
  52. import org.junit.AssumptionViolatedException;
  53. import org.junit.Before;
  54. import org.junit.Test;
  55. import org.junit.runner.RunWith;
  56. import org.junit.runners.Parameterized;
  57. import org.junit.runners.Parameterized.Parameter;
  58. import org.junit.runners.Parameterized.Parameters;
  59. /**
  60. * This is an integration test which performs various actions on all stored test-files and tries
  61. * to reveal problems which are introduced, but not covered (yet) by unit tests.
  62. *
  63. * This test looks for any file under the test-data directory and tries to do some useful
  64. * processing with it based on it's type.
  65. *
  66. * The test is implemented as a junit {@link Parameterized} test, which leads
  67. * to one test-method call for each file (currently around 950 files are handled).
  68. *
  69. * There is a a mapping of extension to implementations of the interface
  70. * {@link FileHandler} which defines how the file is loaded and which actions are
  71. * tried with the file.
  72. *
  73. * The test can be expanded by adding more actions to the FileHandlers, this automatically
  74. * applies the action to any such file in our test-data repository.
  75. *
  76. * There is also a list of files that should actually fail.
  77. *
  78. * Note: It is also a test-failure if a file that is expected to fail now actually works,
  79. * i.e. if a bug was fixed in POI itself, the file should be removed from the expected-failures
  80. * here as well! This is to ensure that files that should not work really do not work, e.g.
  81. * that we do not remove expected sanity checks.
  82. */
  83. @RunWith(Parameterized.class)
  84. public class TestAllFiles {
  85. private static final File ROOT_DIR = new File("test-data");
  86. private static final boolean IGNORE_SCRATCHPAD = Boolean.getBoolean("scratchpad.ignore");
  87. public static final String[] SCAN_EXCLUDES = new String[] { "**/.svn/**", "lost+found", "**/.git/**" };
  88. private static final Map<String,String> FILE_PASSWORD;
  89. // map file extensions to the actual mappers
  90. public static final Map<String, FileHandler> HANDLERS = new HashMap<>();
  91. static {
  92. // Excel
  93. HANDLERS.put(".xls", new HSSFFileHandler());
  94. HANDLERS.put(".xlsx", new XSSFFileHandler());
  95. HANDLERS.put(".xlsm", new XSSFFileHandler());
  96. HANDLERS.put(".xltx", new XSSFFileHandler());
  97. HANDLERS.put(".xlsb", new XSSFBFileHandler());
  98. // Word
  99. HANDLERS.put(".doc", IGNORE_SCRATCHPAD ? new HPSFFileHandler() : new HWPFFileHandler());
  100. HANDLERS.put(".docx", new XWPFFileHandler());
  101. HANDLERS.put(".dotx", new XWPFFileHandler());
  102. HANDLERS.put(".docm", new XWPFFileHandler());
  103. // OpenXML4J files
  104. HANDLERS.put(".ooxml", new OPCFileHandler());
  105. HANDLERS.put(".zip", new OPCFileHandler());
  106. // Powerpoint
  107. HANDLERS.put(".ppt", IGNORE_SCRATCHPAD ? new HPSFFileHandler() : new HSLFFileHandler());
  108. HANDLERS.put(".pptx", new XSLFFileHandler());
  109. HANDLERS.put(".pptm", new XSLFFileHandler());
  110. HANDLERS.put(".ppsm", new XSLFFileHandler());
  111. HANDLERS.put(".ppsx", new XSLFFileHandler());
  112. HANDLERS.put(".thmx", new XSLFFileHandler());
  113. HANDLERS.put(".potx", new XSLFFileHandler());
  114. // Outlook
  115. HANDLERS.put(".msg", IGNORE_SCRATCHPAD ? new HPSFFileHandler() : new HSMFFileHandler());
  116. // Publisher
  117. HANDLERS.put(".pub", IGNORE_SCRATCHPAD ? new HPSFFileHandler() : new HPBFFileHandler());
  118. // Visio - binary
  119. HANDLERS.put(".vsd", IGNORE_SCRATCHPAD ? new HPSFFileHandler() : new HDGFFileHandler());
  120. // Visio - ooxml
  121. HANDLERS.put(".vsdm", new XDGFFileHandler());
  122. HANDLERS.put(".vsdx", new XDGFFileHandler());
  123. HANDLERS.put(".vssm", new XDGFFileHandler());
  124. HANDLERS.put(".vssx", new XDGFFileHandler());
  125. HANDLERS.put(".vstm", new XDGFFileHandler());
  126. HANDLERS.put(".vstx", new XDGFFileHandler());
  127. // Visio - not handled yet
  128. HANDLERS.put(".vst", new NullFileHandler());
  129. HANDLERS.put(".vss", new NullFileHandler());
  130. // POIFS
  131. HANDLERS.put(".ole2", new POIFSFileHandler());
  132. // Microsoft Admin Template?
  133. HANDLERS.put(".adm", new HPSFFileHandler());
  134. // Microsoft TNEF
  135. HANDLERS.put(".dat", IGNORE_SCRATCHPAD ? new HPSFFileHandler() : new HMEFFileHandler());
  136. // TODO: are these readable by some of the formats?
  137. HANDLERS.put(".wri", new NullFileHandler());
  138. HANDLERS.put(".shw", new NullFileHandler());
  139. HANDLERS.put(".zvi", new NullFileHandler());
  140. HANDLERS.put(".mpp", new NullFileHandler());
  141. HANDLERS.put(".qwp", new NullFileHandler());
  142. HANDLERS.put(".wps", new NullFileHandler());
  143. HANDLERS.put(".bin", new NullFileHandler());
  144. HANDLERS.put(".xps", new NullFileHandler());
  145. HANDLERS.put(".sldprt", new NullFileHandler());
  146. HANDLERS.put(".mdb", new NullFileHandler());
  147. HANDLERS.put(".vml", new NullFileHandler());
  148. // ignore some file types, images, other formats, ...
  149. HANDLERS.put(".txt", new NullFileHandler());
  150. HANDLERS.put(".pdf", new NullFileHandler());
  151. HANDLERS.put(".rtf", new NullFileHandler());
  152. HANDLERS.put(".gif", new NullFileHandler());
  153. HANDLERS.put(".html", new NullFileHandler());
  154. HANDLERS.put(".png", new NullFileHandler());
  155. HANDLERS.put(".wmf", new NullFileHandler());
  156. HANDLERS.put(".emf", new NullFileHandler());
  157. HANDLERS.put(".dib", new NullFileHandler());
  158. HANDLERS.put(".svg", new NullFileHandler());
  159. HANDLERS.put(".pict", new NullFileHandler());
  160. HANDLERS.put(".jpg", new NullFileHandler());
  161. HANDLERS.put(".jpeg", new NullFileHandler());
  162. HANDLERS.put(".tif", new NullFileHandler());
  163. HANDLERS.put(".tiff", new NullFileHandler());
  164. HANDLERS.put(".wav", new NullFileHandler());
  165. HANDLERS.put(".pfx", new NullFileHandler());
  166. HANDLERS.put(".xml", new NullFileHandler());
  167. HANDLERS.put(".csv", new NullFileHandler());
  168. HANDLERS.put(".ods", new NullFileHandler());
  169. HANDLERS.put(".ttf", new NullFileHandler());
  170. // VBA source files
  171. HANDLERS.put(".vba", new NullFileHandler());
  172. HANDLERS.put(".bas", new NullFileHandler());
  173. HANDLERS.put(".frm", new NullFileHandler());
  174. HANDLERS.put(".frx", new NullFileHandler()); //binary
  175. HANDLERS.put(".cls", new NullFileHandler());
  176. // map some files without extension
  177. HANDLERS.put("spreadsheet/BigSSTRecord", new NullFileHandler());
  178. HANDLERS.put("spreadsheet/BigSSTRecord2", new NullFileHandler());
  179. HANDLERS.put("spreadsheet/BigSSTRecord2CR1", new NullFileHandler());
  180. HANDLERS.put("spreadsheet/BigSSTRecord2CR2", new NullFileHandler());
  181. HANDLERS.put("spreadsheet/BigSSTRecord2CR3", new NullFileHandler());
  182. HANDLERS.put("spreadsheet/BigSSTRecord2CR4", new NullFileHandler());
  183. HANDLERS.put("spreadsheet/BigSSTRecord2CR5", new NullFileHandler());
  184. HANDLERS.put("spreadsheet/BigSSTRecord2CR6", new NullFileHandler());
  185. HANDLERS.put("spreadsheet/BigSSTRecord2CR7", new NullFileHandler());
  186. HANDLERS.put("spreadsheet/BigSSTRecordCR", new NullFileHandler());
  187. HANDLERS.put("spreadsheet/test_properties1", new NullFileHandler());
  188. // keystore files
  189. HANDLERS.put(".pfx", new NullFileHandler());
  190. HANDLERS.put(".pem", new NullFileHandler());
  191. HANDLERS.put(".jks", new NullFileHandler());
  192. HANDLERS.put(".pkcs12", new NullFileHandler());
  193. Map<String,String> passmap = new HashMap<>();
  194. passmap.put("slideshow/Password_Protected-hello.ppt", "hello");
  195. passmap.put("slideshow/Password_Protected-56-hello.ppt", "hello");
  196. passmap.put("slideshow/Password_Protected-np-hello.ppt", "hello");
  197. passmap.put("slideshow/cryptoapi-proc2356.ppt", "crypto");
  198. passmap.put("spreadsheet/xor-encryption-abc.xls", "abc");
  199. passmap.put("spreadsheet/35897-type4.xls", "freedom");
  200. passmap.put("spreadsheet/58616.xlsx", Decryptor.DEFAULT_PASSWORD);
  201. passmap.put("spreadsheet/password.xls", "password");
  202. passmap.put("spreadsheet/protected_passtika.xlsx", "tika");
  203. passmap.put("document/bug53475-password-is-pass.docx", "pass");
  204. passmap.put("document/bug53475-password-is-solrcell.docx", "solrcell");
  205. passmap.put("document/password_password_cryptoapi.doc", "password");
  206. passmap.put("document/password_tika_binaryrc4.doc", "tika");
  207. passmap.put("poifs/protect.xlsx", Decryptor.DEFAULT_PASSWORD);
  208. passmap.put("poifs/extenxls_pwd123.xlsx", "pwd123");
  209. passmap.put("poifs/protected_agile.docx", Decryptor.DEFAULT_PASSWORD);
  210. passmap.put("poifs/60320-protected.xlsx", "Test001!!");
  211. passmap.put("poifs/protected_sha512.xlsx", "this is a test");
  212. FILE_PASSWORD = Collections.unmodifiableMap(passmap);
  213. }
  214. private static Set<String> unmodifiableHashSet(String... a) {
  215. return Collections.unmodifiableSet(hashSet(a));
  216. }
  217. private static Set<String> hashSet(String... a) {
  218. return new HashSet<>(Arrays.asList(a));
  219. }
  220. // Old Word Documents where we can at least extract some text
  221. private static final Set<String> OLD_FILES_HWPF = unmodifiableHashSet(
  222. "document/Bug49933.doc",
  223. "document/Bug51944.doc",
  224. "document/Word6.doc",
  225. "document/Word6_sections.doc",
  226. "document/Word6_sections2.doc",
  227. "document/Word95.doc",
  228. "document/word95err.doc",
  229. "document/Bug60936.doc",
  230. "document/Bug60942.doc",
  231. "document/Bug60942b.doc",
  232. "document/cn.orthodox.www_divenbog_APRIL_30-APRIL.DOC",
  233. "hpsf/TestMickey.doc",
  234. "document/52117.doc",
  235. "hpsf/TestInvertedClassID.doc",
  236. "hpsf/TestBug52117.doc"
  237. );
  238. private static final Set<String> EXPECTED_FAILURES = unmodifiableHashSet(
  239. // password protected files without known password
  240. "spreadsheet/51832.xls",
  241. "document/PasswordProtected.doc",
  242. // TODO: fails XMLExportTest, is this ok?
  243. "spreadsheet/CustomXMLMapping-singleattributenamespace.xlsx",
  244. "spreadsheet/55864.xlsx",
  245. "spreadsheet/57890.xlsx",
  246. // TODO: these fail now with some NPE/file read error because we now try to compute every value via Cell.toString()!
  247. "spreadsheet/44958.xls",
  248. "spreadsheet/44958_1.xls",
  249. "spreadsheet/testArraysAndTables.xls",
  250. // TODO: good to ignore?
  251. "spreadsheet/sample-beta.xlsx",
  252. "document/cpansearch.perl.org_src_tobyink_acme-rundoc-0.001_word-lib_hello_world.docm",
  253. // This is actually a spreadsheet!
  254. "hpsf/TestRobert_Flaherty.doc",
  255. // some files that are broken, eg Word 95, ...
  256. "spreadsheet/43493.xls",
  257. "spreadsheet/46904.xls",
  258. "document/Bug50955.doc",
  259. "document/57843.doc",
  260. "slideshow/PPT95.ppt",
  261. "slideshow/pp40only.ppt",
  262. "slideshow/Divino_Revelado.pptx",
  263. "openxml4j/OPCCompliance_CoreProperties_DCTermsNamespaceLimitedUseFAIL.docx",
  264. "openxml4j/OPCCompliance_CoreProperties_DoNotUseCompatibilityMarkupFAIL.docx",
  265. "openxml4j/OPCCompliance_CoreProperties_LimitedXSITypeAttribute_NotPresentFAIL.docx",
  266. "openxml4j/OPCCompliance_CoreProperties_LimitedXSITypeAttribute_PresentWithUnauthorizedValueFAIL.docx",
  267. "openxml4j/OPCCompliance_CoreProperties_OnlyOneCorePropertiesPartFAIL.docx",
  268. "openxml4j/OPCCompliance_CoreProperties_UnauthorizedXMLLangAttributeFAIL.docx",
  269. "openxml4j/OPCCompliance_DerivedPartNameFAIL.docx",
  270. "openxml4j/invalid.xlsx",
  271. "openxml4j/62592.thmx",
  272. "spreadsheet/54764-2.xlsx", // see TestXSSFBugs.bug54764()
  273. "spreadsheet/54764.xlsx", // see TestXSSFBugs.bug54764()
  274. "poifs/unknown_properties.msg", // POIFS properties corrupted
  275. (IGNORE_SCRATCHPAD ? "" : "poifs/only-zero-byte-streams.ole2"), // No actual contents
  276. "spreadsheet/poc-xmlbomb.xlsx", // contains xml-entity-expansion
  277. "spreadsheet/poc-xmlbomb-empty.xlsx", // contains xml-entity-expansion
  278. "spreadsheet/poc-shared-strings.xlsx", // contains shared-string-entity-expansion
  279. "document/61612a.docx",
  280. "document/word2.doc",
  281. // old Excel files, which we only support simple text extraction of
  282. "spreadsheet/testEXCEL_2.xls",
  283. "spreadsheet/testEXCEL_3.xls",
  284. "spreadsheet/testEXCEL_4.xls",
  285. "spreadsheet/testEXCEL_5.xls",
  286. "spreadsheet/testEXCEL_95.xls",
  287. "spreadsheet/59074.xls",
  288. "spreadsheet/60284.xls",
  289. // OOXML Strict is not yet supported, see bug #57699
  290. "spreadsheet/SampleSS.strict.xlsx",
  291. "spreadsheet/SimpleStrict.xlsx",
  292. "spreadsheet/sample.strict.xlsx",
  293. "spreadsheet/57914.xlsx",
  294. // non-TNEF files
  295. "ddf/Container.dat",
  296. "ddf/47143.dat",
  297. // sheet cloning errors
  298. "spreadsheet/56450.xls",
  299. "spreadsheet/OddStyleRecord.xls"
  300. );
  301. private static final Set<String> IGNORED = unmodifiableHashSet(
  302. // OPC handler works / XSSF handler fails
  303. "spreadsheet/57181.xlsm",
  304. "spreadsheet/61300.xls"//intentionally fuzzed -- used to cause infinite loop
  305. );
  306. @Parameters(name="{index}: {0} using {1}")
  307. public static Iterable<Object[]> files() {
  308. DirectoryScanner scanner = new DirectoryScanner();
  309. scanner.setBasedir(ROOT_DIR);
  310. scanner.setExcludes(SCAN_EXCLUDES);
  311. scanner.scan();
  312. System.out.println("Handling " + scanner.getIncludedFiles().length + " files");
  313. List<Object[]> files = new ArrayList<>();
  314. for(String file : scanner.getIncludedFiles()) {
  315. file = file.replace('\\', '/'); // ... failures/handlers lookup doesn't work on windows otherwise
  316. if (IGNORED.contains(file)) {
  317. System.out.println("Ignoring " + file);
  318. continue;
  319. }
  320. FileHandler handler = HANDLERS.get(getExtension(file));
  321. files.add(new Object[] { file, handler });
  322. // for some file-types also run OPCFileHandler
  323. if(handler instanceof XSSFFileHandler ||
  324. handler instanceof XWPFFileHandler ||
  325. handler instanceof XSLFFileHandler ||
  326. handler instanceof XDGFFileHandler) {
  327. files.add(new Object[] { file, new OPCFileHandler() });
  328. }
  329. if (handler instanceof HSSFFileHandler ||
  330. handler instanceof HSLFFileHandler ||
  331. handler instanceof HWPFFileHandler ||
  332. handler instanceof HDGFFileHandler) {
  333. files.add(new Object[] { file, new HPSFFileHandler() });
  334. }
  335. }
  336. return files;
  337. }
  338. @SuppressWarnings("DefaultAnnotationParam")
  339. @Parameter(value=0)
  340. public String file;
  341. @Parameter(value=1)
  342. public FileHandler handler;
  343. @Before
  344. public void setPassword() {
  345. // this also removes the password for non encrypted files
  346. String pass = TestAllFiles.FILE_PASSWORD.get(file);
  347. Biff8EncryptionKey.setCurrentUserPassword(pass);
  348. }
  349. @Test
  350. public void testAllFiles() throws Exception {
  351. if(handler == null) {
  352. fail("Did not find a handler for file " + file);
  353. }
  354. System.out.println("Reading " + file + " with " + handler.getClass().getSimpleName());
  355. assertNotNull("Unknown file extension for file: " + file + ": " + getExtension(file), handler);
  356. File inputFile = new File(ROOT_DIR, file);
  357. // special cases where docx-handling breaks, but OPCPackage handling works
  358. boolean ignoredOPC = (file.endsWith(".docx") || file.endsWith(".xlsx") ||
  359. file.endsWith(".xlsb") || file.endsWith(".pptx")) &&
  360. handler instanceof OPCFileHandler;
  361. boolean ignoreHPSF = (handler instanceof HPSFFileHandler);
  362. try {
  363. try (InputStream stream = new BufferedInputStream(new FileInputStream(inputFile), 64 * 1024)) {
  364. handler.handleFile(stream, file);
  365. assertFalse("Expected to fail for file " + file + " and handler " + handler + ", but did not fail!",
  366. OLD_FILES_HWPF.contains(file) && !ignoreHPSF);
  367. }
  368. handler.handleExtracting(inputFile);
  369. assertFalse("Expected to fail for file " + file + " and handler " + handler + ", but did not fail!",
  370. EXPECTED_FAILURES.contains(file) && !ignoredOPC && !ignoreHPSF);
  371. } catch (OldFileFormatException e) {
  372. // for old word files we should still support extracting text
  373. if(OLD_FILES_HWPF.contains(file)) {
  374. handler.handleExtracting(inputFile);
  375. } else {
  376. // check if we expect failure for this file
  377. if(!EXPECTED_FAILURES.contains(file) && !AbstractFileHandler.EXPECTED_EXTRACTOR_FAILURES.contains(file)) {
  378. System.out.println("Failed: " + file);
  379. throw new Exception("While handling " + file, e);
  380. }
  381. }
  382. } catch (AssumptionViolatedException e) {
  383. // file handler ignored this file
  384. } catch (Exception e) {
  385. // check if we expect failure for this file
  386. if(!EXPECTED_FAILURES.contains(file) && !AbstractFileHandler.EXPECTED_EXTRACTOR_FAILURES.contains(file)) {
  387. System.out.println("Failed: " + file);
  388. throw new Exception("While handling " + file, e);
  389. }
  390. }
  391. try {
  392. // let some file handlers do additional stuff
  393. handler.handleAdditional(inputFile);
  394. } catch (AssumptionViolatedException e) {
  395. // file handler ignored this file
  396. } catch (Exception e) {
  397. if(!EXPECTED_FAILURES.contains(file) && !AbstractFileHandler.EXPECTED_EXTRACTOR_FAILURES.contains(file)) {
  398. System.out.println("Failed: " + file);
  399. throw new Exception("While handling " + file, e);
  400. }
  401. }
  402. }
  403. public static String getExtension(String file) {
  404. int pos = file.lastIndexOf('.');
  405. if(pos == -1 || pos == file.length()-1) {
  406. return file;
  407. }
  408. return file.substring(pos).toLowerCase(Locale.ROOT);
  409. }
  410. public static class NullFileHandler implements FileHandler {
  411. @Override
  412. public void handleFile(InputStream stream, String path) throws Exception {
  413. }
  414. @Override
  415. public void handleExtracting(File file) throws Exception {
  416. }
  417. @Override
  418. public void handleAdditional(File file) throws Exception {
  419. }
  420. }
  421. }