public class SmudgeFilter extends FilterCommand
Modifier and Type | Field and Description |
---|---|
static FilterCommandFactory |
FACTORY
The factory is responsible for creating instances of
SmudgeFilter |
in, out
Constructor and Description |
---|
SmudgeFilter(Repository db,
InputStream in,
OutputStream out)
Constructor for SmudgeFilter.
|
Modifier and Type | Method and Description |
---|---|
static void |
register()
Registers this filter in JGit by calling
|
int |
run()
Execute the command.
|
public static final FilterCommandFactory FACTORY
SmudgeFilter
public SmudgeFilter(Repository db, InputStream in, OutputStream out) throws IOException
db
- a Repository
object.in
- a InputStream
object.out
- a OutputStream
object.IOException
public static final void register()
public int run() throws IOException
FilterCommand.in
and to write the result to FilterCommand.out
. It returns the
number of bytes it read from FilterCommand.in
. It should be called in a loop
until it returns -1 signaling that the InputStream
is
completely processed.run
in class FilterCommand
InputStream
or
-1. -1 means that the InputStream
is completely
processed.IOException
- when IOException
occured while reading from
FilterCommand.in
or writing to FilterCommand.out
Copyright © 2017 Eclipse JGit Project. All rights reserved.