I have an InputStream object which contains several million file informations (Name, create date, author etc.) in XML format. I've already tried to convert it to String using IOUtils.copy method, but since the size of that information is pretty large it throws an java.lang.OutOfMemoryError, after running for few minutes.
Increasing JVM memory is not an option, since the number of files, which I collect info from, is increasing forever. So can someone suggest me what should I do to solve the issue?
InputStream? Is it aByteArrayInputStream, for example?