You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FilterCommandFactory.java 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (C) 2016, Christian Halstrick <christian.halstrick@sap.com> and others
  3. *
  4. * This program and the accompanying materials are made available under the
  5. * terms of the Eclipse Distribution License v. 1.0 which is available at
  6. * https://www.eclipse.org/org/documents/edl-v10.php.
  7. *
  8. * SPDX-License-Identifier: BSD-3-Clause
  9. */
  10. package org.eclipse.jgit.attributes;
  11. import java.io.IOException;
  12. import java.io.InputStream;
  13. import java.io.OutputStream;
  14. import org.eclipse.jgit.lib.Repository;
  15. /**
  16. * The factory responsible for creating instances of
  17. * {@link org.eclipse.jgit.attributes.FilterCommand}.
  18. *
  19. * @since 4.6
  20. */
  21. public interface FilterCommandFactory {
  22. /**
  23. * Create a new {@link org.eclipse.jgit.attributes.FilterCommand}.
  24. *
  25. * @param db
  26. * the repository this command should work on
  27. * @param in
  28. * the {@link java.io.InputStream} this command should read from
  29. * @param out
  30. * the {@link java.io.OutputStream} this command should write to
  31. * @return the created {@link org.eclipse.jgit.attributes.FilterCommand}
  32. * @throws java.io.IOException
  33. * thrown when the command constructor throws an
  34. * java.io.IOException
  35. */
  36. FilterCommand create(Repository db, InputStream in, OutputStream out)
  37. throws IOException;
  38. }