code: private int getType(Resource file) {
  	if (transferMode == FTPConstant.TRANSFER_MODE_BINARY) return AFTPClient.FILE_TYPE_BINARY;
  	else if (transferMode == FTPConstant.TRANSFER_MODE_ASCCI) return AFTPClient.FILE_TYPE_TEXT;
  	else {
  	    String ext = ResourceUtil.getExtension(file, null);
  	    if (ext == null || ListUtil.listContainsNoCase(ASCIIExtensionList, ext, ";", true, false) == -1) return AFTPClient.FILE_TYPE_BINARY;
  	    return AFTPClient.FILE_TYPE_TEXT;
  	}
      }
docs: get FTP. ... _FILE_TYPE
  
  @param file
  @return type