Skip to content

Commit b076448

Browse files
committed
Replace internal use of lazy structures, add option in JvmZipReader to try a base offset of 0 by default
1 parent 548a501 commit b076448

34 files changed

+822
-764
lines changed

.gitattributes

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Java sources
5+
*.java text diff=java eol=lf
6+
*.gradle text diff=java eol=lf
7+
8+
# These files are text and should be normalized (Convert crlf => lf)
9+
*.css text diff=css eol=lf
10+
*.html text diff=html eol=lf
11+
*.md text diff=markdown eol=lf
12+
*.js text eol=lf
13+
*.csv text eol=lf
14+
*.json text eol=lf
15+
*.properties text eol=lf
16+
*.svg text eol=lf
17+
*.xml text eol=lf
18+
*.yaml text eol=lf
19+
*.yml text eol=lf
20+
*.toml text eol=lf
21+
*.lang text eol=lf
22+
23+
# These files are binary and should be left untouched
24+
*.png binary
25+
*.gif binary
26+
*.jpg binary
27+
*.jpeg binary
28+
29+
# Common build-tool wrapper scripts
30+
mvnw text eol=lf
31+
gradlew text eol=lf
32+
*.sh text eol=lf
33+
*.bat text eol=crlf
34+
*.cmd text eol=crlf

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>software.coley</groupId>
88
<artifactId>lljzip</artifactId>
9-
<version>2.6.2</version>
9+
<version>2.7.0</version>
1010

1111
<name>LL Java ZIP</name>
1212
<description>Lower level ZIP support for Java</description>

src/main/java/software/coley/lljzip/ZipIO.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import software.coley.lljzip.format.model.CentralDirectoryFileHeader;
44
import software.coley.lljzip.format.model.EndOfCentralDirectory;
55
import software.coley.lljzip.format.model.ZipArchive;
6-
import software.coley.lljzip.format.read.*;
6+
import software.coley.lljzip.format.read.AdaptingZipReader;
7+
import software.coley.lljzip.format.read.ForwardScanZipReader;
8+
import software.coley.lljzip.format.read.JvmZipReader;
9+
import software.coley.lljzip.format.read.NaiveLocalFileZipReader;
10+
import software.coley.lljzip.format.read.ZipReader;
711

812
import java.io.FileNotFoundException;
913
import java.io.IOException;
@@ -172,7 +176,8 @@ public static ZipArchive readJvm(Path path) throws IOException {
172176
*
173177
* @return Archive from path.
174178
*
175-
* @throws IOException When the archive cannot be read.
179+
* @throws IOException
180+
* When the archive cannot be read.
176181
*/
177182
public static ZipArchive readAdaptingIO(Path path) throws IOException {
178183
ZipArchive archive = new ZipArchive();

0 commit comments

Comments
 (0)