Here you can find the source of copyMimeType(final MimeType original)
public static MimeType copyMimeType(final MimeType original) throws MimeTypeParseException
//package com.java2s; //License from project: Open Source License import javax.activation.MimeType; import javax.activation.MimeTypeParseException; public class Main { public static MimeType copyMimeType(final MimeType original) throws MimeTypeParseException { return new MimeType(original.getPrimaryType(), original.getSubType()); }/*from www . ja va 2 s .c o m*/ }