Files
runelite/src/main/java/info/sigterm/deob/attributes/code/Exceptions.java
2014-11-30 20:35:37 -05:00

30 lines
558 B
Java

package info.sigterm.deob.attributes.code;
import info.sigterm.deob.attributes.Code;
import java.io.DataInputStream;
import java.io.IOException;
public class Exceptions
{
private Code code;
private Exception[] exceptions;
public Exceptions(Code code) throws IOException
{
this.code = code;
DataInputStream is = code.getAttributes().getStream();
int count = is.readUnsignedShort();
exceptions = new Exception[count];
for (int i = 0; i < count; ++i)
exceptions[i] = new Exception(this);
}
public Code getCode()
{
return code;
}
}