(int length)
| 30 | } |
| 31 | |
| 32 | public reader read(int length) throws IOException { |
| 33 | byte[] bytes = new byte[length]; |
| 34 | int read = inputStream.read(bytes); |
| 35 | return new reader(length == read, bytes); |
| 36 | } |
| 37 | |
| 38 | // 读取完整的TLV响应 |
| 39 | public tlv.Response readResponse() throws IOException { |