public final class NNTPMessage extends MimeMessage
MimeMessage.RecipientTypecontent, contentStream, dh, flags, headers, modified, savedATTACHMENT, INLINE| Modifier and Type | Method and Description |
|---|---|
java.util.Enumeration |
getAllHeaderLines()
Returns all the header-lines.
|
java.util.Enumeration |
getAllHeaders()
Returns all the headers.
|
java.io.InputStream |
getContentStream()
Returns the unencoded bytes of the content.
|
java.lang.String[] |
getHeader(java.lang.String name)
Returns all the values for the specified header name.
|
java.lang.String |
getHeader(java.lang.String name,
java.lang.String delimiter)
Returns all the values for the specified header name as a single
string, with headers separated by the given delimiter.
|
int |
getLineCount()
Returns the number of lines in the content of this message, or -1 if
this number cannot be determined.
|
java.util.Enumeration |
getMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines with any of the given names.
|
java.util.Enumeration |
getMatchingHeaders(java.lang.String[] names)
Returns all the headers with any of the given names.
|
java.lang.String |
getMessageId() |
java.util.Enumeration |
getNonMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines without any of the given names.
|
java.util.Enumeration |
getNonMatchingHeaders(java.lang.String[] names)
Returns all the headers without any of the given names.
|
int |
getSize()
Returns the size of the content of this message in bytes, or -1 if the
size cannot be determined.
|
void |
saveChanges()
Saves any changes to this message.
|
void |
setFlags(Flags flag,
boolean set)
Sets the flags for this message.
|
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getInputStream, getMessageID, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSubject, isMimeType, isSet, parse, removeHeader, reply, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, updateMessageId, writeTo, writeToaddRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipientpublic java.lang.String getMessageId()
public java.lang.String[] getHeader(java.lang.String name)
throws MessagingException
MimeMessagegetHeader in interface PartgetHeader in class MimeMessagename - the header nameMessagingExceptionpublic java.lang.String getHeader(java.lang.String name,
java.lang.String delimiter)
throws MessagingException
MimeMessagenull, only the first header is
returned.getHeader in interface MimePartgetHeader in class MimeMessagename - the header namedelimiter - the delimiterMessagingExceptionpublic java.util.Enumeration getAllHeaders()
throws MessagingException
MimeMessagegetAllHeaders in interface PartgetAllHeaders in class MimeMessageMessagingExceptionpublic java.util.Enumeration getMatchingHeaders(java.lang.String[] names)
throws MessagingException
MimeMessagegetMatchingHeaders in interface PartgetMatchingHeaders in class MimeMessagenames - the header names to matchMessagingExceptionpublic java.util.Enumeration getNonMatchingHeaders(java.lang.String[] names)
throws MessagingException
MimeMessagegetNonMatchingHeaders in interface PartgetNonMatchingHeaders in class MimeMessagenames - the header names to ignoreMessagingExceptionpublic java.util.Enumeration getAllHeaderLines()
throws MessagingException
MimeMessagegetAllHeaderLines in interface MimePartgetAllHeaderLines in class MimeMessageMessagingExceptionpublic java.util.Enumeration getMatchingHeaderLines(java.lang.String[] names)
throws MessagingException
MimeMessagegetMatchingHeaderLines in interface MimePartgetMatchingHeaderLines in class MimeMessageMessagingExceptionpublic java.util.Enumeration getNonMatchingHeaderLines(java.lang.String[] names)
throws MessagingException
MimeMessagegetNonMatchingHeaderLines in interface MimePartgetNonMatchingHeaderLines in class MimeMessageMessagingExceptionpublic int getSize()
throws MessagingException
MimeMessageNote that this number may not be an exact measure, but if not -1, it will be suitable for display to the user.
getSize in interface PartgetSize in class MimeMessageMessagingExceptionpublic int getLineCount()
throws MessagingException
MimeMessageNote that this number may not be an exact measure, but if not -1, it will be suitable for display to the user.
getLineCount in interface PartgetLineCount in class MimeMessageMessagingExceptionpublic java.io.InputStream getContentStream()
throws MessagingException
MimeMessagegetContentStream in class MimeMessageMessagingExceptionMimeBodyPart.getContentStream()public void saveChanges()
throws MessagingException
MimeMessagesaveChanges in class MimeMessageIllegalWriteException - if the underlying implementation
does not support modification of existing valuesMessagingExceptionpublic void setFlags(Flags flag, boolean set) throws MessagingException
MimeMessagesetFlags in class MimeMessageflag - the flags to be setset - the value to be setIllegalWriteException - if the underlying implementation
does not support modification of existing valuesMessagingException© Copyright 2003, 2004 The Free Software Foundation, All rights reserved