code: private String formatMDLInt(int i, int l) {
          String s = "", fs = "";
          NumberFormat nf = NumberFormat.getNumberInstance(Locale.ENGLISH);
          nf.setParseIntegerOnly(true);
          nf.setMinimumIntegerDigits(1);
          nf.setMaximumIntegerDigits(l);
          nf.setGroupingUsed(false);
          s = nf.format(i);
          l = l - s.length();
          for (int f = 0; f < l; f++)
              fs += " ";
          fs += s;
          return fs;
      }
docs: Formats an int to fit into the connectiontable and changes it
  to a String.
  
  @param   i  The int to be formated
  @param   l  Length of the String
  @return     The String to be written into the connectiontable