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

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