Returns a byte array containing the current contents of the stream.
()
| 194 | * Returns a byte array containing the current contents of the stream. |
| 195 | */ |
| 196 | public byte [] |
| 197 | toByteArray() { |
| 198 | byte [] out = new byte[pos]; |
| 199 | System.arraycopy(array, 0, out, 0, pos); |
| 200 | return out; |
| 201 | } |
| 202 | |
| 203 | } |
no outgoing calls