SnapshotInputStreamSource
public
class
SnapshotInputStreamSource
extends Object
implements
InputStreamSource
| java.lang.Object | |
| ↳ | com.android.tradefed.result.SnapshotInputStreamSource |
InputStreamSource được hỗ trợ bằng tệp. Tạo ảnh chụp nhanh nội dung ERROR(/InputStream) ban đầu để đảm bảo rằng createInputStream() sẽ trả về các ERROR(/InputStream) hoạt động giống hệt nhau nếu cần.
Tóm tắt
Hàm khởi tạo công khai | |
|---|---|
SnapshotInputStreamSource(String name, InputStream stream)
Hàm khởi tạo cho |
|
Phương thức công khai | |
|---|---|
void
|
close()
|
InputStream
|
createInputStream()
|
long
|
size()
|
Hàm khởi tạo công khai
SnapshotInputStreamSource
public SnapshotInputStreamSource (String name,
InputStream stream)Hàm khởi tạo cho InputStreamSource được sao lưu bằng tệp
| Tham số | |
|---|---|
name |
String |
stream |
InputStream |
Phương thức công khai
đóng
public void close ()
createInputStream
public InputStream createInputStream ()
| Giá trị trả về | |
|---|---|
InputStream |
|
size
public long size ()
| Giá trị trả về | |
|---|---|
long |
|