public void body(BodyDescriptor bd, InputStream in) throws IOException { expect(Part.class); Body body = MimeUtility.decodeBody(in, bd.getTransferEncoding()); try { ((Part) stack.peek()).setBody(body); } catch (MessagingException me) { throw new Error(me); } }