Code example for DataInputStream

Methods: readDouble

0
     * 
     * @param file Input stream 
     * @throws IOException 
     */ 
    ConstantDouble(DataInputStream file) throws IOException {
        this(file.readDouble());
    } 
 
 
    /** 
     * Called by objects that are traversing the nodes of the tree implicitely 
     * defined by the contents of a Java class. I.e., the hierarchy of methods, 
     * fields, attributes, etc. spawns a tree of objects. 
     * 
     * @param v Visitor object 
     */ 
    public void accept( Visitor v ) {
        v.visitConstantDouble(this);
    }