javax.mail.internet
Interface MimePart
- All Superinterfaces:
- Part
- All Known Implementing Classes:
- MimeBodyPart, MimeMessage, PreencodedMimeBodyPart
public interface MimePart
- extends Part
- Version:
- $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
Methods inherited from interface javax.mail.Part |
addHeader, getAllHeaders, getContent, getContentType, getDataHandler, getDescription, getDisposition, getFileName, getHeader, getInputStream, getLineCount, getMatchingHeaders, getNonMatchingHeaders, getSize, isMimeType, removeHeader, setContent, setContent, setDataHandler, setDescription, setDisposition, setFileName, setHeader, writeTo |
addHeaderLine
void addHeaderLine(String line)
throws MessagingException
- Throws:
MessagingException
getAllHeaderLines
Enumeration getAllHeaderLines()
throws MessagingException
- Throws:
MessagingException
getContentID
String getContentID()
throws MessagingException
- Throws:
MessagingException
getContentLanguage
String[] getContentLanguage()
throws MessagingException
- Throws:
MessagingException
getContentMD5
String getContentMD5()
throws MessagingException
- Throws:
MessagingException
getEncoding
String getEncoding()
throws MessagingException
- Throws:
MessagingException
getHeader
String getHeader(String header,
String delimiter)
throws MessagingException
- Throws:
MessagingException
getMatchingHeaderLines
Enumeration getMatchingHeaderLines(String[] names)
throws MessagingException
- Throws:
MessagingException
getNonMatchingHeaderLines
Enumeration getNonMatchingHeaderLines(String[] names)
throws MessagingException
- Throws:
MessagingException
setContentLanguage
void setContentLanguage(String[] languages)
throws MessagingException
- Throws:
MessagingException
setContentMD5
void setContentMD5(String content)
throws MessagingException
- Throws:
MessagingException
setText
void setText(String text)
throws MessagingException
- Description copied from interface:
Part
- Set the Part content as text. This is a convenience method that sets
the content to a MIME type of "text/plain".
- Specified by:
setText
in interface Part
- Parameters:
text
- The new text content, as a String object.
- Throws:
MessagingException
setText
void setText(String text,
String charset)
throws MessagingException
- Throws:
MessagingException
setText
void setText(String text,
String charset,
String subType)
throws MessagingException
- Throws:
MessagingException
Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.