/** * Writes MATRIX name into <code>OutputStream</code>. * * @param os - <code>OutputStream</code> * @param array - a <code>MLArray</code> * @throws IOException */ private void writeName(DataOutputStream os, MLArray array) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); DataOutputStream bufferDOS = new DataOutputStream(buffer); byte[] nameByteArray = array.getNameToByteArray(); bufferDOS.write(nameByteArray); OSArrayTag tag = new OSArrayTag(MatDataTypes.miINT8, buffer.toByteArray()); tag.writeTo(os); }
/** * Writes MATRIX name into <code>OutputStream</code>. * * @param os - <code>OutputStream</code> * @param array - a <code>MLArray</code> * @throws IOException */ private void writeName(DataOutputStream os, MLArray array) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); DataOutputStream bufferDOS = new DataOutputStream(buffer); byte[] nameByteArray = array.getNameToByteArray(); buffer = new ByteArrayOutputStream(); bufferDOS = new DataOutputStream(buffer); bufferDOS.write( nameByteArray ); OSArrayTag tag = new OSArrayTag(16, buffer.toByteArray() ); tag.writeTo( os ); }
/** * Writes MATRIX name into <code>OutputStream</code>. * * @param os - <code>OutputStream</code> * @param array - a <code>MLArray</code> * @throws IOException */ private void writeName(DataOutputStream os, MLArray array) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); DataOutputStream bufferDOS = new DataOutputStream(buffer); byte[] nameByteArray = array.getNameToByteArray(); bufferDOS.write(nameByteArray); OSArrayTag tag = new OSArrayTag(MatDataTypes.miINT8, buffer.toByteArray()); tag.writeTo(os); }
/** * Writes MATRIX name into <code>OutputStream</code>. * * @param os - <code>OutputStream</code> * @param array - a <code>MLArray</code> * @throws IOException on underlying IOException */ private void writeName(DataOutputStream os, MLArray array) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); DataOutputStream bufferDOS = new DataOutputStream(buffer); byte[] nameByteArray = array.getNameToByteArray(); buffer = new ByteArrayOutputStream(); bufferDOS = new DataOutputStream(buffer); bufferDOS.write( nameByteArray ); OSArrayTag tag = new OSArrayTag(MatDataTypes.miINT8, buffer.toByteArray() ); tag.writeTo( os ); }
/** * Writes MATRIX name into <code>OutputStream</code>. * * @param os - <code>OutputStream</code> * @param array - a <code>MLArray</code> * @throws IOException */ private void writeName(DataOutputStream os, MLArray array) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); DataOutputStream bufferDOS = new DataOutputStream(buffer); byte[] nameByteArray = array.getNameToByteArray(); bufferDOS.write(nameByteArray); OSArrayTag tag = new OSArrayTag(MatDataTypes.miINT8, buffer.toByteArray()); tag.writeTo(os); } }
/** * Writes MATRIX name into <code>OutputStream</code>. * * @param os - <code>OutputStream</code> * @param array - a <code>MLArray</code> * @throws IOException */ private void writeName(DataOutputStream os, MLArray array) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); DataOutputStream bufferDOS = new DataOutputStream(buffer); byte[] nameByteArray = array.getNameToByteArray(); buffer = new ByteArrayOutputStream(); bufferDOS = new DataOutputStream(buffer); bufferDOS.write( nameByteArray ); OSArrayTag tag = new OSArrayTag(MatDataTypes.miINT8, buffer.toByteArray() ); tag.writeTo( os ); }
/** * Writes MATRIX name into <code>OutputStream</code>. * * @param os - <code>OutputStream</code> * @param array - a <code>MLArray</code> * @throws IOException */ private void writeName(DataOutputStream os, MLArray array) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); DataOutputStream bufferDOS = new DataOutputStream(buffer); byte[] nameByteArray = array.getNameToByteArray(); bufferDOS.write(nameByteArray); OSArrayTag tag = new OSArrayTag(MatDataTypes.miINT8, buffer.toByteArray()); tag.writeTo(os); } }
/** * Writes MATRIX name into <code>OutputStream</code>. * * @param os - <code>OutputStream</code> * @param array - a <code>MLArray</code> * @throws IOException */ private void writeName(DataOutputStream os, MLArray array) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); DataOutputStream bufferDOS = new DataOutputStream(buffer); byte[] nameByteArray = array.getNameToByteArray(); buffer = new ByteArrayOutputStream(); bufferDOS = new DataOutputStream(buffer); bufferDOS.write( nameByteArray ); OSArrayTag tag = new OSArrayTag(16, buffer.toByteArray() ); tag.writeTo( os ); }
/** * Writes MATRIX name into <code>OutputStream</code>. * * @param os - <code>OutputStream</code> * @param array - a <code>MLArray</code> * @throws IOException on underlying IOException */ private void writeName(DataOutputStream os, MLArray array) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); DataOutputStream bufferDOS = new DataOutputStream(buffer); byte[] nameByteArray = array.getNameToByteArray(); buffer = new ByteArrayOutputStream(); bufferDOS = new DataOutputStream(buffer); bufferDOS.write( nameByteArray ); OSArrayTag tag = new OSArrayTag(MatDataTypes.miINT8, buffer.toByteArray() ); tag.writeTo( os ); }
/** * Writes MATRIX name into <code>OutputStream</code>. * * @param os - <code>OutputStream</code> * @param array - a <code>MLArray</code> * @throws IOException */ private void writeName(DataOutputStream os, MLArray array) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); DataOutputStream bufferDOS = new DataOutputStream(buffer); byte[] nameByteArray = array.getNameToByteArray(); buffer = new ByteArrayOutputStream(); bufferDOS = new DataOutputStream(buffer); bufferDOS.write( nameByteArray ); OSArrayTag tag = new OSArrayTag(MatDataTypes.miINT8, buffer.toByteArray() ); tag.writeTo( os ); }