I am trying to recursively find Paths that match a pattern in regex. I implemented the code below but nothing is shown in the OutputStream that the OutputStreamWriter writer