Lines Matching defs:in

9  * This code is distributed in the hope that it will be useful, but WITHOUT
12 * version 2 for more details (a copy is included in the LICENSE file that
27 * @summary javap prints negative bytes incorrectly in hex
65 DataInputStream in = new DataInputStream(new FileInputStream(f));
67 in.readFully(data);
68 in.close();
70 in = new DataInputStream(new ByteArrayInputStream(data));
71 in.skipBytes(4); // magic
72 in.skipBytes(2); // minor
73 in.skipBytes(2); // minor
75 int constantPoolPos = data.length - in.available();
76 int constant_pool_count = skipConstantPool(in);
78 int flagsPos = data.length - in.available();
79 in.skipBytes(2); // access_flags
80 in.skipBytes(2); // this_class
81 in.skipBytes(2); // super_class
83 int interfaces_count = in.readUnsignedShort();
84 in.skipBytes(interfaces_count * 2);
86 int field_count = in.readUnsignedShort();
88 in.skipBytes(6); // access_flags, name_index, descriptor_index
89 skipAttributes(in);
92 int method_count = in.readUnsignedShort();
94 in.skipBytes(6); // access_flags, name_index, descriptor_index
95 skipAttributes(in);
98 int classAttributesPos = data.length - in.available();
99 int attributes_count = in.readUnsignedShort();
107 // copy constant pool, adding in name of new attribute
116 // copy class attributes, adding in new attribute
125 int skipConstantPool(DataInputStream in) throws IOException {
126 int constant_pool_count = in.readUnsignedShort();
128 int tag = in.readUnsignedByte();
131 int length = in.readUnsignedShort();
132 in.skipBytes(length); // bytes
137 in.skipBytes(4); // bytes
142 in.skipBytes(8); // high_bytes, low_bytes
146 in.skipBytes(2); // name_index
150 in.skipBytes(2); // string_index
156 in.skipBytes(4); // class_index, name_and_type_index
160 in.skipBytes(4); // name_index, descriptor_index
170 int skipAttributes(DataInputStream in) throws IOException {
171 int attributes_count = in.readUnsignedShort();
173 in.skipBytes(2); // attribute_name_index;
174 int length = in.readInt();
175 in.skipBytes(length); // info
194 throw new Error("- found in output");
196 throw new Error("FFFFFF found in output");