Writes MATRIX name into OutputStream . @param os - OutputStream @param array - a MLArray @throws IOException
(DataOutputStream os, MLArray array)
| 514 | * @throws IOException |
| 515 | */ |
| 516 | private void writeName(DataOutputStream os, MLArray array) throws IOException { |
| 517 | ByteArrayOutputStream buffer = new ByteArrayOutputStream(); |
| 518 | DataOutputStream bufferDOS = new DataOutputStream(buffer); |
| 519 | |
| 520 | byte[] nameByteArray = array.getNameToByteArray(); |
| 521 | bufferDOS.write(nameByteArray); |
| 522 | OSArrayTag tag = new OSArrayTag(MatDataTypes.miINT8, buffer.toByteArray()); |
| 523 | tag.writeTo(os); |
| 524 | } |
| 525 | |
| 526 | } |
no test coverage detected