mirror of https://github.com/apache/nifi.git
NIFI-7297 add available()
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #4172.
This commit is contained in:
parent
fee1b8b8e0
commit
f4a7aafe4a
|
@ -618,6 +618,11 @@ public class MockProcessSession implements ProcessSession {
|
|||
bais.reset();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int available() throws IOException {
|
||||
return bais.available();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ErrorHandlingInputStream[flowFile=" + mock + "]";
|
||||
|
|
Loading…
Reference in New Issue