code: private void writeTheLines(final BufferedOutputStream stream)
              throws IOException {
          for (final User user : users) {
              final String string = createLine(user);
              stream.write(string.getBytes(StandardCharsets.UTF_8));
              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
  @throws IOException if there is a problem writing to the stream