This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


com.sun.mail.dsn
class MessageHeaders

javax.mail.Message extended by javax.mail.internet.MimeMessage extended by com.sun.mail.dsn.MessageHeaders
All Implemented Interfaces:
Part, MimePart

public class MessageHeaders
extends MimeMessage

A special MimeMessage object that contains only message headers, no content. Used to represent the MIME type text/rfc822-headers.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage
MimeMessage.RecipientType
 
Nested classes/interfaces inherited from class javax.mail.Message
Message.RecipientType
   
Field Summary
 
Fields inherited from class javax.mail.internet.MimeMessage
content, contentStream, dh, flags, headers, modified, saved
 
Fields inherited from class javax.mail.Message
expunged, folder, msgnum, session
 
Constructor Summary

          Construct a MessageHeaders object.

          Constructs a MessageHeaders object from the given InputStream.

          Constructs a MessageHeaders object using the given InternetHeaders.
 
Method Summary
protected InputStream

          Produce the raw bytes of the content.
 InputStream

          Return a decoded input stream for this Message's "content".
 int

          Return the size of this message.
 void

          Can't set any content for a MessageHeaders object.
 
Methods inherited from class javax.mail.internet.MimeMessage
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeTo, writeTo
 
Methods inherited from class javax.mail.Message
addFrom, addRecipient, addRecipients, getAllRecipients, getFlags, getFolder, getFrom, getMessageNumber, getReceivedDate, getRecipients, getReplyTo, getSentDate, getSubject, isExpunged, isSet, match, reply, saveChanges, send, setExpunged, setFlag, setFlags, setFrom, setFrom, setMessageNumber, setRecipient, setRecipients, setReplyTo, setSentDate, setSubject
 

Constructor Detail

MessageHeaders

public MessageHeaders()
               throws MessagingException
Construct a MessageHeaders object.

Throws:
MessagingException

MessageHeaders

public MessageHeaders(InputStream is)
               throws MessagingException
Constructs a MessageHeaders object from the given InputStream.

Parameters:
is - InputStream
Throws:
MessagingException

MessageHeaders

public MessageHeaders(InternetHeaders headers)
               throws MessagingException
Constructs a MessageHeaders object using the given InternetHeaders.

Parameters:
headers - InternetHeaders to use
Throws:
MessagingException
Method Detail

getContentStream

protected InputStream getContentStream()
Overrides:
getContentStream in class MimeMessage

getInputStream

public InputStream getInputStream()
Overrides:
getInputStream in class MimeMessage

getSize

public int getSize()
Return the size of this message. Always returns zero.

Overrides:
getSize in class MimeMessage

setDataHandler

public void setDataHandler(DataHandler dh)
                    throws MessagingException
Can't set any content for a MessageHeaders object.

Overrides:
setDataHandler in class MimeMessage
Parameters:
dh
Throws:
MessagingException - always


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.