• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kit-data-manager / ro-crate-java / #373

28 Apr 2025 09:57AM CUT coverage: 86.891% (+0.9%) from 85.949%
#373

Pull #247

github

web-flow
Merge a4e0ad782 into 0ab3f3ca9
Pull Request #247: Generalize reading and writing crates

249 of 278 new or added lines in 16 files covered. (89.57%)

2 existing lines in 2 files now uncovered.

1889 of 2174 relevant lines covered (86.89%)

0.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/edu/kit/datamanager/ro_crate/reader/ZipReader.java
1
package edu.kit.datamanager.ro_crate.reader;
2

3
import java.nio.file.Path;
4

5
/**
6
 * A ReaderStrategy implementation which reads from ZipFiles.
7
 * <p>
8
 * May be used as a dependency for RoCrateReader. It will unzip
9
 * the ZipFile in a path relative to the directory this application runs in.
10
 * By default, it will be `./.tmp/ro-crate-java/zipReader/$UUID/`.
11
 * <p>
12
 * NOTE: The resulting crate may refer to these temporary files. Therefore,
13
 * these files are only being deleted before the JVM exits. If you need to free
14
 * space because your application is long-running or creates a lot of
15
 * crates, you may use the getters to retrieve information which will help
16
 * you to clean up manually. Keep in mind that crates may refer to this
17
 * folder after extraction. Use RoCrateWriter to export it so some
18
 * persistent location and possibly read it from there, if required. Or use
19
 * the ZipWriter to write it back to its source.
20
 *
21
 * @deprecated Use {@link ZipStrategy} instead.
22
 */
23
@Deprecated(since = "2.1.0", forRemoval = true)
24
public class ZipReader extends ZipStrategy {
25

26
  /**
27
   * Crates a ZipReader with the default configuration as described in the class documentation.
28
   */
29
  public ZipReader() {
NEW
30
    super();
×
NEW
31
  }
×
32

33
  /**
34
   * Creates a ZipReader which will extract the contents temporary
35
   * to the given location instead of the default location.
36
   *
37
   * @param folderPath            the custom directory to extract
38
   *                              content to for temporary access.
39
   * @param shallAddUuidSubfolder if true, the reader will extract
40
   *                              into subdirectories of the given
41
   *                              directory. These subdirectories
42
   *                              will have UUIDs as their names.
43
   */
44
  public ZipReader(Path folderPath, boolean shallAddUuidSubfolder) {
NEW
45
    super(folderPath, shallAddUuidSubfolder);
×
UNCOV
46
  }
×
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc