javax.mail
Interface Part
- All Known Subinterfaces:
- MimePart
- All Known Implementing Classes:
- BodyPart, Message, MimeBodyPart, MimeMessage
- public interface Part
- Version:
- $Revision: 1.3 $ $Date: 2004/03/10 10:00:27 $
ATTACHMENT
public static final String ATTACHMENT
- See Also:
- Constant Field Values
INLINE
public static final String INLINE
- See Also:
- Constant Field Values
addHeader
public void addHeader(String name,
String value)
throws MessagingException
- Throws:
MessagingException
getAllHeaders
public Enumeration getAllHeaders()
throws MessagingException
- Throws:
MessagingException
getContent
public Object getContent()
throws IOException,
MessagingException
- Throws:
IOException
MessagingException
getContentType
public String getContentType()
throws MessagingException
- Throws:
MessagingException
getDataHandler
public javax.activation.DataHandler getDataHandler()
throws MessagingException
- Throws:
MessagingException
getDescription
public String getDescription()
throws MessagingException
- Throws:
MessagingException
getDisposition
public String getDisposition()
throws MessagingException
- Throws:
MessagingException
getFileName
public String getFileName()
throws MessagingException
- Throws:
MessagingException
getHeader
public String[] getHeader(String name)
throws MessagingException
- Throws:
MessagingException
getInputStream
public InputStream getInputStream()
throws IOException,
MessagingException
- Throws:
IOException
MessagingException
getLineCount
public int getLineCount()
throws MessagingException
- Throws:
MessagingException
getMatchingHeaders
public Enumeration getMatchingHeaders(String[] names)
throws MessagingException
- Throws:
MessagingException
getNonMatchingHeaders
public Enumeration getNonMatchingHeaders(String[] names)
throws MessagingException
- Throws:
MessagingException
getSize
public int getSize()
throws MessagingException
- Throws:
MessagingException
isMimeType
public boolean isMimeType(String mimeType)
throws MessagingException
- Throws:
MessagingException
removeHeader
public void removeHeader(String name)
throws MessagingException
- Throws:
MessagingException
setContent
public void setContent(Multipart content)
throws MessagingException
- Throws:
MessagingException
setContent
public void setContent(Object content,
String type)
throws MessagingException
- Throws:
MessagingException
setDataHandler
public void setDataHandler(javax.activation.DataHandler handler)
throws MessagingException
- Throws:
MessagingException
setDescription
public void setDescription(String description)
throws MessagingException
- Throws:
MessagingException
setDisposition
public void setDisposition(String disposition)
throws MessagingException
- Throws:
MessagingException
setFileName
public void setFileName(String name)
throws MessagingException
- Throws:
MessagingException
setHeader
public void setHeader(String name,
String value)
throws MessagingException
- Throws:
MessagingException
setText
public void setText(String content)
throws MessagingException
- Throws:
MessagingException
writeTo
public void writeTo(OutputStream out)
throws IOException,
MessagingException
- Throws:
IOException
MessagingException
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.