Code example for DataInputStream

Methods: readFloat

0
     * 
     * @param file Input stream 
     * @throws IOException 
     */ 
    ConstantFloat(DataInputStream file) throws IOException {
        this(file.readFloat());
    } 
 
 
    /** 
     * 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.visitConstantFloat(this);
    }