2008-11-01 17:32:06 -04:00
|
|
|
|
2009-12-14 21:50:53 -05:00
|
|
|
package com.fsck.k9.mail;
|
2008-11-01 17:32:06 -04:00
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.OutputStream;
|
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public interface Part {
|
2008-11-01 17:32:06 -04:00
|
|
|
public void addHeader(String name, String value) throws MessagingException;
|
|
|
|
|
|
|
|
public void removeHeader(String name) throws MessagingException;
|
|
|
|
|
|
|
|
public void setHeader(String name, String value) throws MessagingException;
|
|
|
|
|
2010-11-30 22:02:13 -05:00
|
|
|
public Body getBody();
|
2008-11-01 17:32:06 -04:00
|
|
|
|
|
|
|
public String getContentType() throws MessagingException;
|
|
|
|
|
|
|
|
public String getDisposition() throws MessagingException;
|
|
|
|
|
2010-07-11 09:44:16 -04:00
|
|
|
public String getContentId() throws MessagingException;
|
|
|
|
|
2008-11-01 17:32:06 -04:00
|
|
|
public String[] getHeader(String name) throws MessagingException;
|
|
|
|
|
2010-11-30 22:02:13 -05:00
|
|
|
public int getSize();
|
2009-11-24 19:40:29 -05:00
|
|
|
|
2008-11-01 17:32:06 -04:00
|
|
|
public boolean isMimeType(String mimeType) throws MessagingException;
|
|
|
|
|
|
|
|
public String getMimeType() throws MessagingException;
|
|
|
|
|
|
|
|
public void setBody(Body body) throws MessagingException;
|
|
|
|
|
|
|
|
public void writeTo(OutputStream out) throws IOException, MessagingException;
|
|
|
|
}
|