private void doWriteTime(TemporalProposition proposition) throws IOException {
   StringUtil.escapeAndWriteDelimitedColumn(
       proposition.getStartFormattedShort(), COLUMN_DELIMITER, this.writer);
   this.writer.write(COLUMN_DELIMITER);
   String finish = proposition.getFinishFormattedShort();
   if (!finish.isEmpty()) {
     StringUtil.escapeAndWriteDelimitedColumn(finish, COLUMN_DELIMITER, this.writer);
   }
 }
Example #2
0
 /**
  * Writes a column, inserting a delimiter as needed.
  *
  * @param column the column contents.
  * @throws IOException if an error occurs writing to the {@link Writer}.
  */
 public void write(String column) throws IOException {
   if (!this.firstColumn) {
     this.writer.write(this.delimiter);
   }
   StringUtil.escapeAndWriteDelimitedColumn(column, this.delimiter, this.writer);
   this.firstColumn = false;
 }
 private void doWriteValue(Parameter parameter) throws IOException {
   StringUtil.escapeAndWriteDelimitedColumn(
       parameter.getValueFormatted(), COLUMN_DELIMITER, this.writer);
   this.writer.write(COLUMN_DELIMITER);
 }
 private void doWritePropId(Proposition proposition) throws IOException {
   StringUtil.escapeAndWriteDelimitedColumn(proposition.getId(), COLUMN_DELIMITER, this.writer);
   this.writer.write(COLUMN_DELIMITER);
 }
 private void doWriteKeyId() throws IOException {
   StringUtil.escapeAndWriteDelimitedColumn(this.keyId, COLUMN_DELIMITER, this.writer);
   this.writer.write(COLUMN_DELIMITER);
 }