Flushes the pending buffer and returns that data in a new array @return the output stream
()
| 187 | */ |
| 188 | |
| 189 | public final byte[] toByteArray() |
| 190 | { |
| 191 | byte[] ret = new byte[ end - start ]; |
| 192 | System.arraycopy(buf, start, ret, 0, ret.length); |
| 193 | start = 0; |
| 194 | end = 0; |
| 195 | return ret; |
| 196 | } |
| 197 | |
| 198 | |
| 199 | } |
no outgoing calls
no test coverage detected