Message
Message msg = new Message(new BufferedInputStream( new FileInputStream("mime.msg")));
Creates a new empty Message.
Parses the specified MIME message stream into a Message instance.paramis the stream to parse.throwsIOException on I/O errors. MimeStreamParser parser = new MimeStreamParser(); parser.setContentHandler(new MessageBuilder()); parser.parse(is);
MimeStreamParser parser = new MimeStreamParser(); parser.setContentHandler(new MessageBuilder()); parser.parse(is);
Gets the Subject field.returnthe Subject field or null if it doesn't exist. return (UnstructuredField) getHeader().getField(Field.SUBJECT);
Subject
null
return (UnstructuredField) getHeader().getField(Field.SUBJECT);
seeorg.apache.james.mime4j.message.Entity#writeTo(java.io.OutputStream) getHeader().writeTo(out); Body body = getBody(); if (body instanceof Multipart) { Multipart mp = (Multipart) body; mp.writeTo(out); } else { body.writeTo(out); }
getHeader().writeTo(out); Body body = getBody(); if (body instanceof Multipart) { Multipart mp = (Multipart) body; mp.writeTo(out); } else { body.writeTo(out); }