KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > cowsultants > itracker > ejb > client > util > IssueAttachmentUtilities


1 /*
2  * This software was designed and created by Jason Carroll.
3  * Copyright (c) 2002, 2003, 2004 Jason Carroll.
4  * The author can be reached at jcarroll@cowsultants.com
5  * ITracker website: http://www.cowsultants.com
6  * ITracker forums: http://www.cowsultants.com/phpBB/index.php
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it only under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  */

18
19 package cowsultants.itracker.ejb.client.util;
20
21 import java.util.*;
22
23 public class IssueAttachmentUtilities {
24     public static final String JavaDoc DEFAULT_ATTACHMENT_DIR = "./itracker/attachments";
25
26     public IssueAttachmentUtilities() {
27     }
28
29 }
30
31 class MimeType {
32     private String JavaDoc mimeType;
33     private HashSet suffixes;
34     private String JavaDoc imageName;
35
36     public MimeType(String JavaDoc mimeType, String JavaDoc imageName) {
37         setMimeType(mimeType);
38         setImageName(imageName);
39     }
40
41     public String JavaDoc getMimeType() {
42         return mimeType;
43     }
44
45     public void setMimeType(String JavaDoc value) {
46         mimeType = value;
47     }
48
49     public String JavaDoc imageName() {
50         return imageName;
51     }
52
53     public void setImageName(String JavaDoc value) {
54         imageName = value;
55     }
56 }
57
58 /*
59  image/gif gif
60  image/ief ief
61  image/jpeg jpeg jpg jpe
62  image/pjpeg jpg
63  image/png png
64  image/x-png png
65  image/tiff tiff tif
66  image/x-cmu-raster ras
67  image/x-portable-anymap pnm
68  image/x-portable-bitmap pbm
69  image/x-portable-graymap pgm
70  image/x-portable-pixmap ppm
71  image/x-rgb rgb
72  image/x-xbitmap xbm
73  image/x-xpixmap xpm
74  image/x-xwindowdump xwd
75  application/x-compress z Z
76  application/x-gtar gtar tgz
77  application/x-gunzip gz
78  application/x-gzip gz
79  application/x-gzip-compressed gz
80  application/x-tar tar
81  application/zip zip
82  application/x-zip-compressed zip
83  text/plain asc txt c cc h hh cpp hpp
84  application/excel xls
85  application/msword doc dot wrd
86  application/pdf pdf
87  application/postscript ai eps ps
88  application/powerpoint ppt
89  application/vnd.rn-realmedia rm
90  audio/x-ms-wma wma
91  application/x-shockwave-flash swf
92 */
Popular Tags