1 2 /* 3 4 The author of this software is Ian Kaplan 5 Bear Products International 6 www.bearcave.com 7 iank@bearcave.com 8 9 Copyright (c) Ian Kaplan, 1999, 2000 10 11 See copyright file for usage and licensing 12 13 */ 14 15 package jconst; 16 17 import java.io.*; 18 import util.*; 19 20 21 public class constDouble extends constLongConvert { 22 double d; 23 24 private void toDouble( long l ) { 25 d = Double.longBitsToDouble( l ); 26 } 27 28 public void read( DataInputStream dStream ) { 29 long longVal; 30 31 longVal = readLong( dStream ); 32 toDouble( longVal ); 33 } 34 35 public String getString() { 36 return Double.toString( d ); 37 } 38 39 public void pr() { 40 System.out.print( d ); 41 } // pr 42 } // constDouble 43