Code example for DataInputStream

Methods: readUnsignedShort

0
     * 
     * @param file Input stream 
     * @throws IOException 
     */ 
    ConstantClass(DataInputStream file) throws IOException {
        this(file.readUnsignedShort());
    } 
 
 
    /** 
     * @param name_index Name index in constant pool.  Should refer to a 
     * ConstantUtf8. 
     */ 
    public ConstantClass(int name_index) {
        super(Constants.CONSTANT_Class); 
        this.name_index = name_index;
    } 
 
 
    /** 
     * Called by objects that are traversing the nodes of the tree implicitely