Code example for DataInputStream

Methods: readUnsignedShort

0
     * 
     * @param file Input stream 
     * @throws IOException 
     */ 
    ConstantNameAndType(DataInputStream file) throws IOException {
        this(file.readUnsignedShort(), file.readUnsignedShort());
    } 
 
 
    /** 
     * @param name_index Name of field/method 
     * @param signature_index and its signature 
     */ 
    public ConstantNameAndType(int name_index, int signature_index) {
        super(Constants.CONSTANT_NameAndType); 
        this.name_index = name_index;
        this.signature_index = signature_index;
    } 
 
 
    /**