|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.terasoluna.fw.web.struts.actions.AbstractDownloadObject
jp.terasoluna.fw.web.struts.actions.DownloadFile
public class DownloadFile
ファイルをダウンロード対象とするためのクラス。
フィールドの概要 | |
---|---|
protected File |
file
ダウンロード対象のファイル。 |
クラス jp.terasoluna.fw.web.struts.actions.AbstractDownloadObject から継承されたフィールド |
---|
additionalHeaders, charset, contentType, DEFAULT_CHARSET, DEFAULT_CONTENT_TYPE, name, NO_DOWNLOAD_CONTENT_ERROR |
コンストラクタの概要 | |
---|---|
DownloadFile(File file)
引数にファイルを持つコンストラクタ。 |
|
DownloadFile(String name,
File file)
引数にファイル名とファイルを持つコンストラクタ。 |
メソッドの概要 | |
---|---|
int |
getLengthOfData()
ダウンロードサイズを取得する。 |
protected InputStream |
getStreamInternal()
ダウンロード内容のストリームを内部的に取得する。 |
クラス jp.terasoluna.fw.web.struts.actions.AbstractDownloadObject から継承されたメソッド |
---|
addHeader, getAdditionalHeaders, getCharset, getContentType, getName, getStream, setCharset, setContentType, setName |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected File file
コンストラクタの詳細 |
---|
public DownloadFile(File file)
file
- ファイル。public DownloadFile(String name, File file)
name
- ファイル名。file
- ファイル。メソッドの詳細 |
---|
public int getLengthOfData()
AbstractDownloadObject
内の getLengthOfData
protected InputStream getStreamInternal() throws FileNotFoundException
AbstractDownloadObject
内の getStreamInternal
FileNotFoundException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |