IssueAttachmentUtilities.java

  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. package org.itracker.model.util;

  19. import java.util.HashSet;

  20. @Deprecated
  21. public class IssueAttachmentUtilities {
  22.     public static final String DEFAULT_ATTACHMENT_DIR = "./itracker/attachments";

  23.     public IssueAttachmentUtilities() {
  24.     }

  25. }

  26. @Deprecated
  27. class MimeType {
  28.     private String mimeType;
  29.     private HashSet<?> suffixes;
  30.     private String imageName;

  31.     public MimeType(String mimeType, String imageName) {
  32.         setMimeType(mimeType);
  33.         setImageName(imageName);
  34.     }

  35.     public String getMimeType() {
  36.         return mimeType;
  37.     }

  38.     public void setMimeType(String value) {
  39.         mimeType = value;
  40.     }

  41.     public String imageName() {
  42.         return imageName;
  43.     }

  44.     public void setImageName(String value) {
  45.         imageName = value;
  46.     }

  47.     public HashSet<?> getSuffixes() {
  48.         return suffixes;
  49.     }

  50.     public void setSuffixes(HashSet<?> suffixes) {
  51.         this.suffixes = suffixes;
  52.     }
  53. }

  54. /*
  55.  image/gif                       gif
  56.  image/ief                       ief
  57.  image/jpeg                      jpeg jpg jpe
  58.  image/pjpeg                     jpg
  59.  image/png                       png
  60.  image/x-png                     png
  61.  image/tiff                      tiff tif
  62.  image/x-cmu-raster              ras
  63.  image/x-portable-anymap         pnm
  64.  image/x-portable-bitmap         pbm
  65.  image/x-portable-graymap        pgm
  66.  image/x-portable-pixmap         ppm
  67.  image/x-rgb                     rgb
  68.  image/x-xbitmap                 xbm
  69.  image/x-xpixmap                 xpm
  70.  image/x-xwindowdump             xwd
  71.  application/x-compress          z Z
  72.  application/x-gtar              gtar tgz
  73.  application/x-gunzip            gz
  74.  application/x-gzip              gz
  75.  application/x-gzip-compressed   gz
  76.  application/x-tar               tar
  77.  application/zip                 zip
  78.  application/x-zip-compressed    zip
  79.  text/plain                      asc txt c cc h hh cpp hpp
  80.  application/excel               xls
  81.  application/msword              doc dot wrd
  82.  application/pdf                 pdf
  83.  application/postscript          ai eps ps
  84.  application/powerpoint          ppt
  85.  application/vnd.rn-realmedia    rm
  86.  audio/x-ms-wma                  wma
  87.  application/x-shockwave-flash   swf
  88. */