I'm currently reading a file with:
InputStream inputStream = MyClass.class.getClassLoader().getResourceAsStream(FILE);
Is there any way I can get the file from this InputStream
so that I can later write to it.
Or is it possible to convert the InputStream
into an OutputStream
that will point to the exact same file?
I found out that getResourceAsStream()
does not exist for OutputStream
.