Code example for DataInputStream

Methods: readDouble

0
     *      entry to be read. 
     * @exception IOException if there is a problem reading the entry from the 
     *      stream. 
     */ 
    public void read(DataInputStream cpStream) throws IOException {
        setValue(new Double(cpStream.readDouble()));
    } 
 
    /** 
     * Print a readable version of the constant pool entry. 
     * 
     * @return the string representation of this constant pool entry. 
     */ 
    public String toString() {
        return "Double Constant Pool Entry: " + getValue(); 
    } 
 
}