(byte[] d)
| 50 | |
| 51 | |
| 52 | public void setData(byte[] d) { |
| 53 | if (defaultBufferSize <= 0) { |
| 54 | System.out.println("You need to set the buffer size first."); |
| 55 | return; |
| 56 | } |
| 57 | buf = new byte[defaultBufferSize]; |
| 58 | this.data = new ByteArrayInputStream(d); |
| 59 | } |
| 60 | |
| 61 | public int getCurReadIdx() { |
| 62 | return curReadIdx; |
no outgoing calls
no test coverage detected