public class DownloadInputStream extends AbstractDownloadObject
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected InputStream |
stream
ダウンロード内容のインプットストリーム。
|
additionalHeaders, charset, contentType, DEFAULT_CHARSET, DEFAULT_CONTENT_TYPE, name, NO_DOWNLOAD_CONTENT_ERROR| コンストラクタと説明 |
|---|
DownloadInputStream(String name,
InputStream stream)
コンストラクタ。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
getLengthOfData()
ダウンロードサイズを取得する。
|
protected InputStream |
getStreamInternal()
ダウンロード内容のストリームを内部的に取得する。
|
addHeader, getAdditionalHeaders, getCharset, getContentType, getName, getStream, setCharset, setContentType, setNameprotected transient InputStream stream
public DownloadInputStream(String name, InputStream stream)
name - ダウンロード名。stream - インプットストリーム。public int getLengthOfData()
このクラスでは取得できないため-1が返却される。
getLengthOfData クラス内 AbstractDownloadObjectprotected InputStream getStreamInternal() throws IOException
getStreamInternal クラス内 AbstractDownloadObjectIOExceptionCopyright © 2014. All Rights Reserved.