public class DownloadFile extends AbstractDownloadObject
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected File |
file
ダウンロード対象のファイル。
|
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()
ダウンロード内容のストリームを内部的に取得する。
|
addHeader, getAdditionalHeaders, getCharset, getContentType, getName, getStream, setCharset, setContentType, setNameprotected File file
public DownloadFile(File file)
file - ファイル。public int getLengthOfData()
getLengthOfData クラス内 AbstractDownloadObjectprotected InputStream getStreamInternal() throws FileNotFoundException
getStreamInternal クラス内 AbstractDownloadObjectFileNotFoundExceptionCopyright © 2014. All Rights Reserved.