javax.mail
Interface Part
- All Known Subinterfaces:
- MimePart
- All Known Implementing Classes:
- BodyPart, Message, MimeBodyPart, MimeMessage
public interface Part
Note: Parts are used in Collections so implementing classes must provide
a suitable implementation of equals and hashCode.
- Version:
- $Rev: 467553 $ $Date: 2006-10-25 06:01:51 +0200 (Wed, 25 Oct 2006) $
ATTACHMENT
static final java.lang.String ATTACHMENT
- See Also:
- Constant Field Values
INLINE
static final java.lang.String INLINE
- See Also:
- Constant Field Values
addHeader
void addHeader(java.lang.String name,
java.lang.String value)
throws MessagingException
- Throws:
MessagingException
getAllHeaders
java.util.Enumeration getAllHeaders()
throws MessagingException
- Throws:
MessagingException
getContent
java.lang.Object getContent()
throws java.io.IOException,
MessagingException
- Throws:
java.io.IOException
MessagingException
getContentType
java.lang.String getContentType()
throws MessagingException
- Throws:
MessagingException
getDataHandler
javax.activation.DataHandler getDataHandler()
throws MessagingException
- Throws:
MessagingException
getDescription
java.lang.String getDescription()
throws MessagingException
- Throws:
MessagingException
getDisposition
java.lang.String getDisposition()
throws MessagingException
- Throws:
MessagingException
getFileName
java.lang.String getFileName()
throws MessagingException
- Throws:
MessagingException
getHeader
java.lang.String[] getHeader(java.lang.String name)
throws MessagingException
- Throws:
MessagingException
getInputStream
java.io.InputStream getInputStream()
throws java.io.IOException,
MessagingException
- Throws:
java.io.IOException
MessagingException
getLineCount
int getLineCount()
throws MessagingException
- Throws:
MessagingException
getMatchingHeaders
java.util.Enumeration getMatchingHeaders(java.lang.String[] names)
throws MessagingException
- Throws:
MessagingException
getNonMatchingHeaders
java.util.Enumeration getNonMatchingHeaders(java.lang.String[] names)
throws MessagingException
- Throws:
MessagingException
getSize
int getSize()
throws MessagingException
- Throws:
MessagingException
isMimeType
boolean isMimeType(java.lang.String mimeType)
throws MessagingException
- Throws:
MessagingException
removeHeader
void removeHeader(java.lang.String name)
throws MessagingException
- Throws:
MessagingException
setContent
void setContent(Multipart content)
throws MessagingException
- Throws:
MessagingException
setContent
void setContent(java.lang.Object content,
java.lang.String type)
throws MessagingException
- Throws:
MessagingException
setDataHandler
void setDataHandler(javax.activation.DataHandler handler)
throws MessagingException
- Throws:
MessagingException
setDescription
void setDescription(java.lang.String description)
throws MessagingException
- Throws:
MessagingException
setDisposition
void setDisposition(java.lang.String disposition)
throws MessagingException
- Throws:
MessagingException
setFileName
void setFileName(java.lang.String name)
throws MessagingException
- Throws:
MessagingException
setHeader
void setHeader(java.lang.String name,
java.lang.String value)
throws MessagingException
- Throws:
MessagingException
setText
void setText(java.lang.String content)
throws MessagingException
- Throws:
MessagingException
writeTo
void writeTo(java.io.OutputStream out)
throws java.io.IOException,
MessagingException
- Throws:
java.io.IOException
MessagingException
Copyright © 2011. All Rights Reserved.