抽象類別,實作 IComm 介面的預設功能。
更多...
|
| void | Read (OutputStream binDataIn) throws IOException |
| |
| void | WaitForData (int msTimeOut) |
| | 等待當前執行緒有可用的資料 BytesAvailable。當前執行緒會休眠直到收到資料或超時為止。此為阻塞呼叫。 更多...
|
| |
| void | Write (InputStream binReader) throws IOException |
| | 從輸入流寫入輸出流。 更多...
|
| |
| void | WriteAndWaitForResponse (OutputStream binDataIn, InputStream binDataOut, int responseStartTimeOut, int responseEndTimeOut, String completetionToken) throws IOException |
| | 將 binDataOut 流資料寫入輸出流,並將接收到的資料返回到 binDataIn 流中。返回的資料是收到的資料或收到的完成標記。等待回應超時後返回。 更多...
|
| |
| byte[] | WriteAndWaitForResponse (byte[] dataOut, int responseStartTimeOut, int responseEndTimeOut, String completetionToken) throws IOException |
| | 將位元組資料寫入輸出流並返回接收到的資料。返回的資料是接收到的任何資料或收到的完成標記。等待回應超時後返回。 更多...
|
| |
| String | Descriptor () |
| |
| int | BytesAvailable () |
| |
| boolean | Connected () |
| |
| void | Close () |
| |
| void | Open () |
| |
| byte[] | Read () |
| |
| void | Write (byte[] dataOut) |
| |
◆ Read()
| void com.UniPRT.Sdk.Comm.AComm.Read |
( |
OutputStream |
binDataIn | ) |
throws IOException |
◆ WaitForData()
| void com.UniPRT.Sdk.Comm.AComm.WaitForData |
( |
int |
msTimeOut | ) |
|
◆ Write()
| void com.UniPRT.Sdk.Comm.AComm.Write |
( |
InputStream |
binReader | ) |
throws IOException |
◆ WriteAndWaitForResponse() [1/2]
| byte [] com.UniPRT.Sdk.Comm.AComm.WriteAndWaitForResponse |
( |
byte[] |
dataOut, |
|
|
int |
responseStartTimeOut, |
|
|
int |
responseEndTimeOut, |
|
|
String |
completionToken |
|
) |
| throws IOException |
◆ WriteAndWaitForResponse() [2/2]
| void com.UniPRT.Sdk.Comm.AComm.WriteAndWaitForResponse |
( |
OutputStream |
binDataIn, |
|
|
InputStream |
binDataOut, |
|
|
int |
responseStartTimeOut, |
|
|
int |
responseEndTimeOut, |
|
|
String |
completionToken |
|
) |
| throws IOException |
◆ MAX_PACKET_SIZE
| final int com.UniPRT.Sdk.Comm.AComm.MAX_PACKET_SIZE = 1024 * 4 |
|
private |
此類別(class) 文件是由下列檔案中產生:
- app/src/main/java/com/UniPRT/Sdk/Comm/AComm.java