src/jdk.jlink/share/classes/jdk/tools/jlink/internal/JarArchive.java
Print this page
*** 32,42 ****
import java.util.Objects;
import java.util.jar.JarFile;
import java.util.stream.Stream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
- import jdk.internal.util.jar.VersionedStream;
import jdk.tools.jlink.internal.Archive.Entry.EntryType;
/**
* An Archive backed by a jar file.
*/
--- 32,41 ----
*** 103,113 ****
open();
}
} catch (IOException ioe) {
throw new UncheckedIOException(ioe);
}
! return VersionedStream.stream(jarFile)
.filter(je -> !je.isDirectory())
.map(this::toEntry);
}
abstract EntryType toEntryType(String entryName);
--- 102,112 ----
open();
}
} catch (IOException ioe) {
throw new UncheckedIOException(ioe);
}
! return jarFile.versionedStream()
.filter(je -> !je.isDirectory())
.map(this::toEntry);
}
abstract EntryType toEntryType(String entryName);