I have a Spring boot app, and I wrote some ItemWriter and ItemReaders, for example for JSON files and CSV files.
I want to add a step of compressing to GZIP and decompressing from GZIP.
I wanted to know if it is possible to do as usual with JavaStreams -
If I have some InputStream or OutputStream, I can decorate it with another stream (i.e., another stream can get it in it's constructor and use it), and that way to get all of the streams' functionality easily.
Can it be done with the Spring ItemWriter and ItemReader?
Else, what's the best way to add compressing and decompressing to an existing writers and readers?