I have to use a method whose signature is like this
aMethod(FileInputStream);
I call that method like this
FileInputStream inputStream = new FileInputStream(someTextFile);
aMethod(inputStream);
I want to remove/edit some char which is being read from someTextFile before it being passed into aMethod(inputStream)
;
I cannot change aMethod's signature or overload it. And, it just take a InputStream. If method taking a string as param, then I wouldn't be asking this question.
I am InputStream noob. Please advise.