#include <PipedInputStream.h>
類別TPipedInputStream的繼承圖:

公開方法(Public Methods) | |
| TPipedInputStream (TByteArrayOutputStream *) | |
| ~TPipedInputStream () | |
| int | Available (void) |
| 傳回目前有多少個byte資料可供讀取 | |
| void | Close (void) |
| 關閉資料流. | |
| int | Position (void) |
| 傳回目前讀取到整個資料流的第幾個byte。若呼叫Close再呼叫此函式會傳回0 | |
| int | Read (void) |
| 從資料流讀取一個byte並傳回。若已經到達資料流結尾,或呼叫Close,再呼叫此函式會傳回-1 | |
| void | Reset (void) |
| 將讀取的位置移到資料流開頭 | |
| int | Skip (int) |
| 略過size個byte的資料,並傳回實際上略過的byte數 | |
保護屬性 | |
| TByteArrayOutputStream * | BAOStream |
| int | position |
定義在 PipedInputStream.h 檔案之第 7 行.
| TPipedInputStream::TPipedInputStream | ( | TByteArrayOutputStream * | ) |
| TPipedInputStream::~TPipedInputStream | ( | ) |
定義在 PipedInputStream.cpp 檔案之第 9 行.
| int TPipedInputStream::Available | ( | void | ) | [virtual] |
| void TPipedInputStream::Close | ( | void | ) | [virtual] |
關閉資料流.
依據TInputStream重新實作.
定義在 PipedInputStream.cpp 檔案之第 18 行.
參考 BAOStream, TOutputStream::Close(), 及 position.
| int TPipedInputStream::Position | ( | void | ) | [virtual] |
傳回目前讀取到整個資料流的第幾個byte。若呼叫Close再呼叫此函式會傳回0
實作 TInputStream.
定義在 PipedInputStream.cpp 檔案之第 24 行.
參考 position.
| int TPipedInputStream::Read | ( | void | ) | [virtual] |
從資料流讀取一個byte並傳回。若已經到達資料流結尾,或呼叫Close,再呼叫此函式會傳回-1
實作 TInputStream.
定義在 PipedInputStream.cpp 檔案之第 29 行.
參考 BAOStream, position, TByteArrayOutputStream::Size(), 及 TByteArrayOutputStream::ToByteArray().
| void TPipedInputStream::Reset | ( | void | ) | [virtual] |
| int TPipedInputStream::Skip | ( | int | ) | [virtual] |
TByteArrayOutputStream* TPipedInputStream::BAOStream [protected] |
int TPipedInputStream::position [protected] |
定義在 PipedInputStream.h 檔案之第 11 行.
被參考於 Available(), Close(), Position(), Read(), Reset(), Skip(), 及 TPipedInputStream().
1.4.7