jp.cssj.cti2.helpers
クラス MimeTypeHelper

java.lang.Object
  上位を拡張 jp.cssj.cti2.helpers.MimeTypeHelper

public final class MimeTypeHelper
extends Object

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

バージョン:
$Id: MimeTypeHelper.java 457 2010-05-20 02:26:26Z miyabe $
作成者:
MIYABE Tatsuhiko

メソッドの概要
static boolean equals(String type1, String type2)
          2つのMIMEタイプがパラメータを除いて同じがどうかを判別します。
static String getParameter(String type, String name)
          Content-Typeヘッダパラメータの値を返します。
static String getTypePart(String type)
          パラメータを除いた部分を返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

equals

public static boolean equals(String type1,
                             String type2)
2つのMIMEタイプがパラメータを除いて同じがどうかを判別します。

パラメータ:
type1 - MIME型1。
type2 - MIME型2。
戻り値:
2つのタイプが一致していればtrue、そうでなければfalse。

getTypePart

public static String getTypePart(String type)
パラメータを除いた部分を返します。

パラメータ:
type - MIME型。
戻り値:
MIME型のパラメータを除いた部分。

getParameter

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

パラメータ:
type - Content-Typeヘッダ値。
name - パラメータ名。
戻り値:
パラメータの値。


(c)2008-2011 GNN & Co.,Ltd.