java io extension This module has some extension for java io package. BackupInputStream This class keeps read each bytes into output stream to read later. MemFileOutputStream This class keep some bytes greater than your specified memory threshold into file path. I think it prevents from OutOfMemoryError.