openGionopenGion
5.8.4.0

org.opengion.hayabusa.servlet.multipart
クラス ParamPart

java.lang.Object
  上位を拡張 org.opengion.hayabusa.servlet.multipart.Part
      上位を拡張 org.opengion.hayabusa.servlet.multipart.ParamPart

public class ParamPart
extends Part

ファイルアップロード時のマルチパート処理のパラメータパート部品です。 パラメータ情報を取り扱います。

機能分類
その他機能
バージョン
4.0
作成者
Kazuhiko Hasegawa
導入されたバージョン:
JDK5.0,

コンストラクタの概要
ParamPart(String name, ServletInputStream in, String boundary, String encoding)
          パラメータパート部品 オブジェクトを構築する、コンストラクター
 
メソッドの概要
 String getStringValue()
          値を文字列で返します。
 String getStringValue(String encoding)
          エンコードを与えて、値を文字列に変換して返します。
 byte[] getValue()
          値をバイト配列で返します。
 boolean isParam()
          パラメーターかどうか
 
クラス org.opengion.hayabusa.servlet.multipart.Part から継承されたメソッド
getName, isFile
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ParamPart

ParamPart(String name,
          ServletInputStream in,
          String boundary,
          String encoding)
    throws IOException
パラメータパート部品 オブジェクトを構築する、コンストラクター

パラメータ:
name - パラメータの名前
in - ServletInputStreamオブジェクト
boundary - 境界文字
encoding - エンコード
例外:
IOException - 入出力エラーが発生したとき
メソッドの詳細

getValue

public byte[] getValue()
値をバイト配列で返します。

戻り値:
値のバイト配列

getStringValue

public String getStringValue()
                      throws UnsupportedEncodingException
値を文字列で返します。

戻り値:
このクラスの初期エンコードに対応した文字列
例外:
UnsupportedEncodingException - コンストラクタで指定した エンコード がサポートされていない場合。

getStringValue

public String getStringValue(String encoding)
                      throws UnsupportedEncodingException
エンコードを与えて、値を文字列に変換して返します。

パラメータ:
encoding - エンコード
戻り値:
エンコードに対応した文字列
例外:
UnsupportedEncodingException - 引数のエンコード がサポートされていない場合。

isParam

public boolean isParam()
パラメーターかどうか

オーバーライド:
クラス Part 内の isParam
戻り値:
(常に true)

openGion 5.8.4.0

Webアプリケーションフレームワーク openGion
SourceForge.JPCopyright (c) 2009 The openGion Project.