title: Library and examples of parsing multipart/form-data from inputstream
body: <p>The response to one kind of HTTP request I send is a multipart/form-data looks something like:</p>
  
  <pre><code>--------boundary123
  Content-Disposition: form-data; name="json"
  Content-Type: application/json
  
  {"some":"json"}
  --------boundary123
  Content-Disposition: form-data; name="bin"
  Content-Type: application/octet-stream
  
  &lt;file data&gt;
  
  --------boundary123
  </code></pre>
  
  <p>I've been using apache to send and receive the HTTP requests, but I can't seem to find an easy way to use it to parse the above for easy access of the form fields.</p>
  
  <p>I would prefer not to reinvent the wheel, so I'm looking for a library that allows me to do something similar to:</p>
  
  <pre><code>MultipartEntity multipart = new MultipartEntity(inputStream);
  InputStream bin = multipart.get("bin");
  </code></pre>
  
  <p>Any suggestions?</p>