Java Activation Mimetype Check copyMimeType(final MimeType original)

Here you can find the source of copyMimeType(final MimeType original)

Description

copy Mime Type

License

Open Source License

Declaration

public static MimeType copyMimeType(final MimeType original) throws MimeTypeParseException 

Method Source Code


//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*/
}

Related

  1. createWildcard()
  2. equal(String string1, String string2)
  3. getContentType(String filename)
  4. getContentType(String filePath)