示例#1
0
 public void field(RawField field) {
   expect(Part.class);
   try {
     Field parsedField = DefaultFieldParser.parse(field.getRaw(), null);
     ((Part) stack.peek()).addHeader(parsedField.getName(), parsedField.getBody().trim());
   } catch (MessagingException me) {
     throw new Error(me);
   } catch (MimeException me) {
     throw new Error(me);
   }
 }
 /** @see org.apache.james.mime4j.parser.AbstractContentHandler#field(RawField) */
 @Override
 public final void field(RawField field) throws MimeException {
   Field parsedField = DefaultFieldParser.parse(field.getRaw(), monitor);
   currHeader.addField(parsedField);
 }