Class JarDiffMerger
java.lang.Object
net.adoptopenjdk.icedteaweb.resources.jardiff.JarDiffMerger
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleancontainsEntryWithSameName(Collection<JarEntry> collection, String name) private static booleancontainsOldName(Collection<JarDiffMerger.MovedJar> collection, String oldName) getIndexFileLines(JarFile jarDiff) private static Set<JarDiffMerger.MovedJar> getMovedContent(JarFile jarDiff) getNewContent(JarFile jarDiff) getRemovedContent(JarFile jarDiff) static voidmerge(JarFile oldJar, JarFile jarDiff, JarOutputStream outputStream) private static voidwriteEntry(InputStream inputStream, JarOutputStream jarOutputStream, String entryName)
-
Field Details
-
LOG
-
MOVED_PATH_PATTERN
-
ESCAPED_WHITESPACE_PATTERN
-
VERSION_INFORMATION
- See Also:
-
INDEX_FILE
- See Also:
-
REMOVE_KEYWORD
- See Also:
-
MOVE_KEYWORD
- See Also:
-
-
Constructor Details
-
JarDiffMerger
public JarDiffMerger()
-
-
Method Details
-
merge
public static void merge(JarFile oldJar, JarFile jarDiff, JarOutputStream outputStream) throws IOException - Throws:
IOException
-
containsEntryWithSameName
-
containsOldName
private static boolean containsOldName(Collection<JarDiffMerger.MovedJar> collection, String oldName) -
getNewContent
-
getIndexFileLines
- Throws:
IOException
-
getRemovedContent
- Throws:
IOException
-
getMovedContent
- Throws:
IOException
-
writeEntry
private static void writeEntry(InputStream inputStream, JarOutputStream jarOutputStream, String entryName) throws IOException - Throws:
IOException
-