I've got a problem. I need to avoid writing a file to disk in anyway. Instead I need to use some way of memory representation of a file. Is there a output stream class that I can use to prevent disk writing at all?
Jakarta Commons IO is a library of utilities to assist with developing IO functionality. IOUtils.toByteArray(Reader input) will return an in-memory representation of your file as a byte array.