Craig McClanahan wrote:
>
> Ugh ... that (parsing MIME headers) is something else that I didn't have
> to worry about when I was "constructively lazy" and depended on JavaMail
> for parsing. We'd definitely need to build something on top of the
> MultipartStream from Commons FileUpload, since that only gives you body
> parts as a whole, and doesn't deal with the headers.
>
Correct me if I'm wrong, but it doesn't look like parsing the headers is
difficult at all. I believe that HeaderTokenizer takes care of the quotes
and internal whitespace for you. All that's left for you to do is tell it to
scan for semi-colons and equal-signs, take the parser output and pass it
into HeaderType.
Gili
--
View this message in context: http://n2.nabble.com/Hello-World%21-and-Welcome-to-jersey-multipart-tp1343189p1454917.html
Sent from the Jersey mailing list archive at Nabble.com.