Jochen Wiedmann (JIRA) ha scritto: > [ > https://issues.apache.org/jira/browse/MIME4J-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > ] > > Jochen Wiedmann updated MIME4J-25: > ---------------------------------- > > Attachment: mime4j-fieldName.patch > > Proposed patch, adding methods getFieldName() and getFieldValue() to the > MimeTokenStream.
The patch seems ok to me. It also fix a problem with the logger. Just a minor change: the javadocs for the 2 added fields say they return a #T_FIELD. I don't know if there is a token name for the name and the value "alone" but they are not a #T_FIELD, right? Stefano >> [JW#5] Field Name And Value >> --------------------------- >> >> Key: MIME4J-25 >> URL: https://issues.apache.org/jira/browse/MIME4J-25 >> Project: Mime4j >> Issue Type: Wish >> Reporter: Robert Burrell Donkin >> Attachments: mime4j-fieldName.patch >> >> >> http://mail-archives.apache.org/mod_mbox/james-server-dev/200708.mbox/[EMAIL >> PROTECTED] number 5 >> 5.) Provide methods >> public String getFieldName() >> public String getFieldValue() >> The user of >> public String getField() >> is forced to parse the returned value in order to obtain the >> field name and the >> value, although the Mime4jTokenStream has already done exactly that. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
