()
| 29 | } |
| 30 | |
| 31 | public byte[] toByteArray() throws Exception { |
| 32 | ByteArrayOutputStream out = new ByteArrayOutputStream(); |
| 33 | for (Frame frame : stream) { |
| 34 | |
| 35 | out.write(frame.toByteArray()); |
| 36 | } |
| 37 | return out.toByteArray(); |
| 38 | } |
| 39 | |
| 40 | public byte[] toByteArrayWithoutExtra() throws Exception { |
| 41 | ByteArrayOutputStream out = new ByteArrayOutputStream(); |
no test coverage detected