To send data to a file on my FTP server, I need to create a custom InputStream implementation that reads the database data line by line, converts it to CSV and publishes it using read () methods: from the database, I get a List<Application>data object. For each object, ApplicationI want to create a line in a CSV file.
My idea is to load all the data in the constructor and then override the read method. Do I need to override all InputStream methods? I tried a few examples, but I couldn’t - could you end up giving me a link to it?
source
share