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 // base class for sub classes that need to 22 // convert a high and low int to a long 23 abstract class constLongConvert extends constBase { 24 25 private long toLong( int high, int low ) { 26 long l; 27 28 l = high; 29 l = l << 32; 30 l = l | low; 31 return l; 32 } // toLong 33 34 protected long readLong( DataInputStream dStream ) { 35 int high, low; 36 long l; 37 38 high = readU4(dStream); 39 low = readU4(dStream); 40 l = toLong( high, low ); 41 return l; 42 } 43 44 } // constLongConvert 45