private static void writeBlock(OutputStream dest, Iterator<IAceBaseComponent> i)
    throws IOException {
    while (i.hasNext()) {
      dest.write(i.next().rebuildComponent());
      if (i.hasNext()) {
        dest.write(",".getBytes("UTF-8"));
      }
    }
  }
private static void writeBlock ( OutputStream dest , Iterator < IAceBaseComponent > i ) throws IOException { while ( i . hasNext ( ) ) { dest . write ( i . next ( ) . rebuildComponent ( ) ) ; if ( i . hasNext ( ) ) { dest . write ( "," . getBytes ( "UTF-8" ) ) ; } } }
Write the current {@link IAceBaseComponent} to an {@link OutputStream}.
<p>
This method automatically calls {@link IAceBaseComponent#rebuildComponent}
to retrieve all subcomponents.

@param dest Destination {@link OutputStream}
@param i    Iterator of all items of a specific {@link IAceBaseComponent}.
@throws IOException if there is an I/O error