jp.cssj.cti2.helpers
Class MimeTypeHelper

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

public final class MimeTypeHelper
extends Object

MIME方を解析する補助クラスです。

Version:
$Id: MimeTypeHelper.java 1034 2013-10-23 05:51:57Z miyabe $
Author:
MIYABE Tatsuhiko

Method Summary
static boolean equals(String type1, String type2)
          2つのMIMEタイプがパラメータを除いて同じがどうかを判別します。
static String getParameter(String type, String name)
          Content-Typeヘッダパラメータの値を返します。
static String getTypePart(String type)
          パラメータを除いた部分を返します。
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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:
パラメータの値。


Copyright © 2017 座間ソフト. All rights reserved.