Code example for DataInputStream

Methods: readUnsignedShort

0
     * @param tag  Constant type tag 
     * @param file Input stream 
     * @throws IOException 
     */ 
    ConstantCP(byte tag, DataInputStream file) throws IOException {
        this(tag, file.readUnsignedShort(), file.readUnsignedShort());
    } 
 
 
    /** 
     * @param class_index Reference to the class containing the field 
     * @param name_and_type_index and the field signature 
     */ 
    protected ConstantCP(byte tag, int class_index, int name_and_type_index) {
        super(tag);
        this.class_index = class_index;
        this.name_and_type_index = name_and_type_index;
    } 
 
 
    /**