title: How can I create a zip archive in Java from generated files in memory?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/357851/in-java-how-to-zip-file-from-byte-array">In Java: How to zip file from byte[] array?</a>  </p>
  </blockquote>
  
  
  
  <p>Here's the deal, I work at a university web office and we provide a few website templates for university departments and clubs. I have been tasked with building a web form that will allow them to select the template they want and provide a title which will be programmatically inserted into the template they select before downloading.</p>
  
  <p>My question is, can I pull the template into memory, insert the title and output it to a zip archive <strong>without writing a temporary file to disk</strong>?</p>
  
  <p>It seems that Java's ZipEntry requires a filename and cannot simply use data already in memory.</p>