KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > mail > gui > attachment > IAttachmentContext


1 package org.columba.mail.gui.attachment;
2
3 import java.io.IOException JavaDoc;
4 import java.io.InputStream JavaDoc;
5 import java.nio.charset.Charset JavaDoc;
6
7 /**
8  * Provides context information for attachment.
9  *
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 JavaDoc getContent() throws IOException JavaDoc;
21
22     public String JavaDoc getFileName();
23
24     public String JavaDoc getContentType();
25
26     public String JavaDoc getContentSubtype();
27
28     public Charset JavaDoc getCharset();
29
30     public String JavaDoc getContentParameter(String JavaDoc key);
31
32     public String JavaDoc getContentId();
33
34     public String JavaDoc getContentDescription();
35
36     public String JavaDoc getDispositionParameter(String JavaDoc key);
37
38 }
39
Popular Tags