Code example for DataInputStream

Methods: readUnsignedShort

     * @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) {
        this.class_index = class_index;
        this.name_and_type_index = name_and_type_index;
Experience pair programming with AI  Get Codota for Java