Code example for DataInputStream

Methods: readUnsignedShort

0
     * @param constant_pool Array of constants 
     * @throws IOException 
     */ 
    PMGClass(int name_index, int length, DataInputStream file, ConstantPool constant_pool)
            throws IOException { 
        this(name_index, length, file.readUnsignedShort(), file.readUnsignedShort(), constant_pool);
    } 
 
 
    /** 
     * @param name_index Index in constant pool to CONSTANT_Utf8 
     * @param length Content length in bytes 
     * @param pmg_index index in constant pool for source file name 
     * @param pmg_class_index Index in constant pool to CONSTANT_Utf8 
     * @param constant_pool Array of constants 
     */ 
    public PMGClass(int name_index, int length, int pmg_index, int pmg_class_index,
            ConstantPool constant_pool) {
        super(Constants.ATTR_PMG, name_index, length, constant_pool);
        this.pmg_index = pmg_index;
        this.pmg_class_index = pmg_class_index;