code: private void writeTheLines(final BufferedOutputStream stream,
              final String charset)
              throws IOException {
          for (final GedWriterLine line : visitor.getLines()) {
              if (line.getLine().isEmpty()) {
                  continue;
              }
              final String string = line.getLine();
              stream.write(string.getBytes(charset));
              stream.write('\n');
          }
      }
docs: Loop through the lines from the line creator and write them to the
  stream.
  
  @param stream the stream to write to
  @param charset the string encoding to use
  @throws IOException if there is a problem writing to the stream