helun/Ektorp — pull request #89 by dlvenable (2012-08-29 18:34:24+00:00)
Title: AttachmentsInOrderParser for MIME multipart/related

CouchDB's MIME multipart/related messages do not provide headers for the attachments. To match them up with attachments you need to parse the _attachments property in-order.

I created a utility which reads a document from a JsonParser and gives the attachment names in order which I have found helpful. I thought it might be appropriate to put into Ektorp for other Java/CouchDB developers.