1 26 package com.yworks.yguard.obf.classfile; 27 28 import java.io.*; 29 import java.util.*; 30 31 36 public class ExceptionInfo 37 { 38 public static final int CONSTANT_FIELD_SIZE = 8; 40 41 42 private int u2startpc; 44 private int u2endpc; 45 private int u2handlerpc; 46 private int u2catchType; 47 48 49 public static ExceptionInfo create(DataInput din) throws java.io.IOException 51 { 52 ExceptionInfo ei = new ExceptionInfo(); 53 ei.read(din); 54 return ei; 55 } 56 57 58 private ExceptionInfo() {} 60 private void read(DataInput din) throws java.io.IOException 61 { 62 u2startpc = din.readUnsignedShort(); 63 u2endpc = din.readUnsignedShort(); 64 u2handlerpc = din.readUnsignedShort(); 65 u2catchType = din.readUnsignedShort(); 66 } 67 68 69 public void write(DataOutput dout) throws java.io.IOException 70 { 71 dout.writeShort(u2startpc); 72 dout.writeShort(u2endpc); 73 dout.writeShort(u2handlerpc); 74 dout.writeShort(u2catchType); 75 } 76 } 77 | Popular Tags |