-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GraxCode
committed
May 7, 2020
1 parent
d72d8c8
commit cd60cde
Showing
8 changed files
with
142 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
package me.nov.threadtear.io; | ||
|
||
import java.util.jar.JarEntry; | ||
import java.io.*; | ||
import java.util.jar.*; | ||
|
||
import org.objectweb.asm.tree.ClassNode; | ||
|
||
public class Clazz { | ||
|
||
public boolean transform = true; | ||
public ClassNode node; | ||
public JarEntry oldEntry; | ||
public final ClassNode node; | ||
public final JarEntry oldEntry; | ||
public final JarFile jar; | ||
|
||
public Clazz(ClassNode node, JarEntry oldEntry) { | ||
public Clazz(ClassNode node, JarEntry oldEntry, JarFile jar) { | ||
super(); | ||
this.node = node; | ||
this.oldEntry = oldEntry; | ||
this.jar = jar; | ||
} | ||
|
||
public InputStream streamOriginal() throws IOException { | ||
JarFile jf = new JarFile(jar.getName()); | ||
return jf.getInputStream(jf.getEntry(oldEntry.getName())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.