快照輸入串流來源
public class SnapshotInputStreamSource
extends Object
implements InputStreamSource
java.lang.Object | |
↳ | com.android.tradefed.result.SnapshotInputStreamSource |
文件支援的InputStreamSource。建立原始ERROR(/InputStream)
內容的快照,以確保createInputStream()
將根據需要傳回行為相同的ERROR(/InputStream)
。
概括
公共構造函數 | |
---|---|
SnapshotInputStreamSource (String name, InputStream stream) 檔案支援的 |
公共方法 | |
---|---|
void | close () |
InputStream | createInputStream () |
long | size ()
|
公共構造函數
快照輸入串流來源
public SnapshotInputStreamSource (String name, InputStream stream)
檔案支援的InputStreamSource
的建構函數
參數 | |
---|---|
name | String |
stream | InputStream |
公共方法
關閉
public void close ()
建立輸入流
public InputStream createInputStream ()
退貨 | |
---|---|
InputStream |
尺寸
public long size ()
退貨 | |
---|---|
long |