private Integer guessFormat(byte[] fileData){
  Integer result=SyncParameter.EXPORT_FORMAT_VERINICE_ARCHIV;
  if (fileData != null) {
    String content=new String(fileData);
    content=content.trim();
    if (content.endsWith(SYNC_REQUEST)) {
      result=SyncParameter.EXPORT_FORMAT_XML_PURE;
    }
  }
  return result;
}

private Integer guessFormat ( byte [ ] fileData ) { Integer result = SyncParameter . EXPORT_FORMAT_VERINICE_ARCHIV ; if ( fileData != null ) { String content = new String ( fileData ) ; content = content . trim ( ) ; if ( content . endsWith ( SYNC_REQUEST ) ) { result = SyncParameter . EXPORT_FORMAT_XML_PURE ; } } return result ; }
returns exportcommand . export_format_xml_pure if filedata is a verinice xml document if not exportcommand . export_format_verinice_archiv is returned .
