public abstract class FilterCommand extends Object
FilterCommandFactory
.Modifier and Type | Field and Description |
---|---|
protected InputStream |
in
The
InputStream this command should read from |
protected OutputStream |
out
The
OutputStream this command should write to |
Constructor and Description |
---|
FilterCommand(InputStream in,
OutputStream out)
Constructor for FilterCommand
|
protected InputStream in
InputStream
this command should read fromprotected OutputStream out
OutputStream
this command should write topublic FilterCommand(InputStream in, OutputStream out)
in
- The InputStream
this command should read fromout
- The OutputStream
this command should write topublic abstract int run() throws IOException
in
and to write the result to out
. It returns the
number of bytes it read from in
. It should be called in a loop
until it returns -1 signaling that the InputStream
is
completely processed.InputStream
or
-1. -1 means that the InputStream
is completely
processed.IOException
- when IOException
occured while reading from
in
or writing to out
Copyright © 2017 Eclipse JGit Project. All rights reserved.