public FontData(final String cachedFile){
  try {
    fontFile=new RandomAccessFile(cachedFile,"r");
    fullLength=(int)fontFile.length();
  }
 catch (  final Exception e) {
    LogWriter.writeLog("Exception: " + e.getMessage());
  }
  if (fullLength < maxSizeAllowedInMemory) {
    blockSize=maxSizeAllowedInMemory;
    adjustForCache(0);
    isInMemory=true;
  }
}

public FontData ( final String cachedFile ) { try { fontFile = new RandomAccessFile ( cachedFile , "r" ) ; fullLength = ( int ) fontFile . length ( ) ; } catch ( final Exception e ) { LogWriter . writeLog ( "Exception: " + e . getMessage ( ) ) ; } if ( fullLength < maxSizeAllowedInMemory ) { blockSize = maxSizeAllowedInMemory ; adjustForCache ( 0 ) ; isInMemory = true ; } }
pass in name of temp file on disk so we can just read part at a time - if not part of pdf user is responsible for deleting
