code: private void writeFlags(DataOutputStream os, MLArray array) throws IOException
      {
          ByteArrayOutputStream buffer = new ByteArrayOutputStream();
          DataOutputStream bufferDOS = new DataOutputStream(buffer);
  
          bufferDOS.writeInt( array.getFlags() );
          
          if ( array.isSparse() )
          {
              bufferDOS.writeInt( ((MLSparse)array).getMaxNZ() );
          }
          else
          {
              bufferDOS.writeInt( 0 );
          }
          OSArrayTag tag = new OSArrayTag(MatDataTypes.miUINT32, buffer.toByteArray() );
          tag.writeTo( os );
          
      }
docs: Writes MATRIX flags into <code>OutputStream</code>.
  
  @param os - <code>OutputStream</code>
  @param array - a <code>MLArray</code>
  @throws IOException