jp.terasoluna.fw.web.struts.actions
クラス DownloadInputStream
java.lang.Object
jp.terasoluna.fw.web.struts.actions.AbstractDownloadObject
jp.terasoluna.fw.web.struts.actions.DownloadInputStream
- すべての実装されたインタフェース:
- Serializable
public class DownloadInputStream
- extends AbstractDownloadObject
インプットストリームをダウンロードデータとするためのクラス。
- 関連項目:
- 直列化された形式
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stream
protected transient InputStream stream
- ダウンロード内容のインプットストリーム。
DownloadInputStream
public DownloadInputStream(String name,
InputStream stream)
- コンストラクタ。
- パラメータ:
name
- ダウンロード名。stream
- インプットストリーム。
getLengthOfData
public int getLengthOfData()
- ダウンロードサイズを取得する。
このクラスでは取得できないため-1
が返却される。
- 定義:
- クラス
AbstractDownloadObject
内の getLengthOfData
- 戻り値:
- ダウンロードサイズ。
getStreamInternal
protected InputStream getStreamInternal()
throws IOException
- ダウンロード内容のストリームを内部的に取得する。
- 定義:
- クラス
AbstractDownloadObject
内の getStreamInternal
- 戻り値:
- ストリーム。
- 例外:
IOException
Copyright © 2012. All Rights Reserved.