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, setName
protected transient InputStream stream
public DownloadInputStream(String name, InputStream stream)
name
- ダウンロード名。stream
- インプットストリーム。public int getLengthOfData()
このクラスでは取得できないため-1
が返却される。
getLengthOfData
クラス内 AbstractDownloadObject
protected InputStream getStreamInternal() throws IOException
getStreamInternal
クラス内 AbstractDownloadObject
IOException
Copyright © 2016. All Rights Reserved.