示例#1
0
  /** Part of the ChecksumMover interface. */
  private ChecksumFactory getChecksumFactory(GFtpProtocolInfo protocol) {
    String type = protocol.getChecksumType();
    if (type == null || type.equals("Unknown")) {
      return null;
    }

    try {
      return ChecksumFactory.getFactory(ChecksumType.getChecksumType(type));
    } catch (NoSuchAlgorithmException e) {
      esay("CRC Algorithm is not supported: " + type);
    }

    return null;
  }