1 18 package org.apache.tools.ant.taskdefs.optional.depend.constantpool; 19 20 import java.io.DataInputStream ; 21 import java.io.IOException ; 22 23 27 public class FloatCPInfo extends ConstantCPInfo { 28 29 30 public FloatCPInfo() { 31 super(CONSTANT_FLOAT, 1); 32 } 33 34 42 public void read(DataInputStream cpStream) throws IOException { 43 setValue(new Float (cpStream.readFloat())); 44 } 45 46 51 public String toString() { 52 return "Float Constant Pool Entry: " + getValue(); 53 } 54 55 } 56 57 | Popular Tags |