System.out.println("header " + ioe.getMessage());
   public void writeHeader(String fileName, String host,                                 ArrayList ffd, char decChar) {      final byte[] bof = {0x09,0x08,0x06,0x00,0x00,0x00,0x10,0x00,0x00,0x00};      final byte[] dimension = {0x00,0x02,0x0A,0x00,0x00,0x00,0x64,0x00,                                 0x00,0x00,0x64,0x00,0x00,0x00};      try {         fout.write(bof);         fout.write(dimension);         FileFieldDef f;         //  loop through each of the fields and write out the format of         //     the cell for numeric values.         int c = 0;         for (int x = 0; x < ffd.size(); x++) {            f = (FileFieldDef)ffd.get(x);            if (f.isWriteField()) {               switch (f.getFieldType()) {                  case 'P':                  case 'S':                     writeFormat(f.getFieldLength(),f.getPrecision(),++c);                     break;                  default:                     break;               }            }         }         //  loop through each of the fields and write out the field name for         //    each selected field         c = 0;         for (int x = 0; x < ffd.size(); x++) {            f = (FileFieldDef)ffd.get(x);            if (f.isWriteField()) {               writeLabel(f.getFieldName(),c++);            }         }      }      catch (IOException ioe) {//         printFTPInfo(" error writing header " + ioe.getMessage());      }   }