/*
* Copyright (C) 2016, Christian Halstrick <christian.halstrick@sap.com> and others
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0 which is available at
* https://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package org.eclipse.jgit.attributes;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.eclipse.jgit.lib.Repository;
The factory responsible for creating instances of FilterCommand
. Since: 4.6
/**
* The factory responsible for creating instances of
* {@link org.eclipse.jgit.attributes.FilterCommand}.
*
* @since 4.6
*/
public interface FilterCommandFactory {
Create a new FilterCommand
. Params: - db –
the repository this command should work on
- in – the
InputStream
this command should read from - out – the
OutputStream
this command should write to
Throws: - IOException –
thrown when the command constructor throws an
java.io.IOException
Returns: the created FilterCommand
/**
* Create a new {@link org.eclipse.jgit.attributes.FilterCommand}.
*
* @param db
* the repository this command should work on
* @param in
* the {@link java.io.InputStream} this command should read from
* @param out
* the {@link java.io.OutputStream} this command should write to
* @return the created {@link org.eclipse.jgit.attributes.FilterCommand}
* @throws java.io.IOException
* thrown when the command constructor throws an
* java.io.IOException
*/
FilterCommand create(Repository db, InputStream in, OutputStream out)
throws IOException;
}