01: package org.columba.mail.gui.attachment;
02:
03: import java.io.IOException;
04: import java.io.InputStream;
05: import java.nio.charset.Charset;
06:
07: /**
08: * Provides context information for attachment.
09: *
10: * @author frd
11: */
12: public interface IAttachmentContext {
13:
14: /**
15: * Return attachment content.
16: *
17: * @return attachment content
18: * @throws in case of io error
19: */
20: public InputStream getContent() throws IOException;
21:
22: public String getFileName();
23:
24: public String getContentType();
25:
26: public String getContentSubtype();
27:
28: public Charset getCharset();
29:
30: public String getContentParameter(String key);
31:
32: public String getContentId();
33:
34: public String getContentDescription();
35:
36: public String getDispositionParameter(String key);
37:
38: }
|