private String getLine(StringBuilderWriter buf) {
    String line = buf.toString();
    buf.getBuilder().setLength(0);
    return line;
  }
Fills the class's internal buffer with a DSV line
beeline/src/java/org/apache/hive/beeline/SeparatedValuesOutputFormat.java