Class MimeTypeHelper

java.lang.Object
jp.cssj.cti2.helpers.MimeTypeHelper

public final class MimeTypeHelper extends Object
MIME方を解析する補助クラスです。
  • Method Details

    • equals

      public static boolean equals(String type1, String type2)
      2つのMIMEタイプがパラメータを除いて同じがどうかを判別します。
      Parameters:
      type1 - MIME型1。
      type2 - MIME型2。
      Returns:
      2つのタイプが一致していればtrue、そうでなければfalse。
    • getTypePart

      public static String getTypePart(String type)
      パラメータを除いた部分を返します。
      Parameters:
      type - MIME型。
      Returns:
      MIME型のパラメータを除いた部分。
    • getParameter

      public static String getParameter(String type, String name)
      Content-Typeヘッダパラメータの値を返します。
      Parameters:
      type - Content-Typeヘッダ値。
      name - パラメータ名。
      Returns:
      パラメータの値。