NIFI-7297 add available()

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #4172.
This commit is contained in:
KovalevIV 2020-03-30 23:30:10 +03:00 committed by Pierre Villard
parent fee1b8b8e0
commit f4a7aafe4a
No known key found for this signature in database
GPG Key ID: BEE1599F0726E9CD
1 changed files with 5 additions and 0 deletions

View File

@ -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 + "]";