From: Mike S. <ms...@us...> - 2008-01-16 14:28:56
|
Update of /cvsroot/wonder/Wonder/Common/Frameworks/ERAttachment/Sources/er/attachment/utils In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv26653/Sources/er/attachment/utils Modified Files: ERMimeTypeManager.java Log Message: allowing editing the mime type manager Index: ERMimeTypeManager.java =================================================================== RCS file: /cvsroot/wonder/Wonder/Common/Frameworks/ERAttachment/Sources/er/attachment/utils/ERMimeTypeManager.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ERMimeTypeManager.java 5 Aug 2007 18:24:59 -0000 1.2 --- ERMimeTypeManager.java 16 Jan 2008 14:28:24 -0000 1.3 *************** *** 68,71 **** --- 68,87 ---- /** + * Removes all the mime types from this manager. + */ + public void clearMimeTypes() { + _mimeTypes.clear(); + } + + /** + * Removes the given mime type definition from this manager. + * + * @param mimeType the mime type to remove + */ + public void removeMimeType(ERMimeType mimeType) { + _mimeTypes.remove(mimeType); + } + + /** * Adds a mime type definition to the manager. * |