Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue());
if (intRadix == 16) thisString = thisString.substring(2);  int thisInt = Integer.parseInt(thisString, intRadix); CurrentArray.setData(dataLocator, thisInt);
    private void addDataToCurrentArray ( Locator dataLocator,                                          String thisString,                                          DataFormat CurrentDataFormat                                       )     {// Log.error("addDatatoArray:["+thisString+"]");       // Note that we dont treat binary data at all here        try {           if ( CurrentDataFormat instanceof StringDataFormat) {// Log.errorln(" StringDataFormat");              CurrentArray.setData(dataLocator, thisString);           } else if ( CurrentDataFormat instanceof FloatDataFormat                       || CurrentDataFormat instanceof BinaryFloatDataFormat)            {// Log.errorln(" FloatDataFormat");              Double number = new Double (thisString);              CurrentArray.setData(dataLocator, number.doubleValue());           } else if ( CurrentDataFormat instanceof IntegerDataFormat                       || CurrentDataFormat instanceof BinaryIntegerDataFormat)            {// Log.errorln(" IntegerDataFormat");              Integer number = new Integer (thisString);              CurrentArray.setData(dataLocator, number.intValue());           } else {              Log.warnln("Unknown data format, unable to setData:["+thisString+"], ignoring request");           }       } catch (SetDataException e) {           // bizarre error. Cant add data (out of memory??) :P           Log.errorln("Unable to setData:["+thisString+"], ignoring request");           Log.printStackTrace(e);       }    }