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