Hello all,
I am facing the problem to handle many xml-files that are all greater than 70 MB. Validating and accessing them cost a lot of time. Now I am wondering if the following steps could increase my applications performence.
I can compress a 70MB xml-file in a gzip-file < 1MB. So I could hold only gzip files. Working with the data could be done like this:
- Make the gzip available with java.io.File (only the small file)
- Using for example StringBufferInputStream and GZIPInputStream to extract the conten within the RAM
- work with the content (RAM): Parse, Validate, ...
- create a String in RAM that represents the new xml-content (RAM)
- Use GZIPOutputStream to access the file system (small content again)
Can I do this or id there a misapprehension in my thoughts?
THX in advance! Hans