1 21 22 package org.apache.derby.iapi.services.classfile; 23 24 import java.io.InputStream ; 25 import java.io.DataInputStream ; 26 import java.io.IOException ; 27 28 29 32 33 class ClassInput extends DataInputStream { 34 35 ClassInput(InputStream in) { 36 super(in); 37 } 38 39 int getU2() throws IOException { 40 return readUnsignedShort(); 41 } 42 int getU4() throws IOException { 43 return readInt(); 44 } 45 byte[] getU1Array(int count) throws IOException { 46 byte[] b = new byte[count]; 47 readFully(b); 48 return b; 49 } 50 } 51 | Popular Tags |