test_class.declarator: factory
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private TransformerFactory factory;
test_class.type: TransformerFactory
test_class.var_name: factory
test_class.declarator: outputStream
test_class.modifier: private
test_class.original_string: private OutputStream outputStream;
test_class.type: OutputStream
test_class.var_name: outputStream
test_class.declarator: writer
test_class.modifier: protected
test_class.original_string: protected TransformerWriter writer;
test_class.type: TransformerWriter
test_class.var_name: writer
test_class.file: dataprep-transformation/src/test/java/org/talend/dataprep/transformation/format/XlsWriterTest.java
test_class.identifier: XlsWriterTest
test_class.superclass: extends BaseFormatTest
test_case.body: @Test(expected = IllegalStateException.class)
      public void should_only_write_values_in_columns_order_TDP_3188() throws Exception {
          final Map<String, String> values = new HashMap<>();
          values.put("key", "value");
          DataSetRow row = new DataSetRow(new RowMetadata(), values);
  
          writer.write(row);
      }
test_case.class_method_signature: XlsWriterTest.should_only_write_values_in_columns_order_TDP_3188()
test_case.full_signature: @Test(expected = IllegalStateException.class) public void should_only_write_values_in_columns_order_TDP_3188()
test_case.identifier: should_only_write_values_in_columns_order_TDP_3188
test_case.invocations: put write
test_case.modifiers: @Test(expected = IllegalStateException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_only_write_values_in_columns_order_TDP_3188()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(XlsWriter.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(XlsWriter.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: BUFFER_CSV_SEPARATOR = ','
focal_class.modifier: private static final
focal_class.original_string: private static final char BUFFER_CSV_SEPARATOR = ',';
focal_class.type: char
focal_class.var_name: BUFFER_CSV_SEPARATOR
focal_class.declarator: outputStream
focal_class.modifier: private final
focal_class.original_string: private final OutputStream outputStream;
focal_class.type: OutputStream
focal_class.var_name: outputStream
focal_class.declarator: workbook
focal_class.modifier: private final
focal_class.original_string: private final SXSSFWorkbook workbook;
focal_class.type: SXSSFWorkbook
focal_class.var_name: workbook
focal_class.declarator: sheet
focal_class.modifier: private final
focal_class.original_string: private final Sheet sheet;
focal_class.type: Sheet
focal_class.var_name: sheet
focal_class.declarator: rowsBuffer
focal_class.modifier: private
focal_class.original_string: private ObjectBuffer<String[]> rowsBuffer;
focal_class.type: ObjectBuffer<String[]>
focal_class.var_name: rowsBuffer
focal_class.declarator: writtenMetadata
focal_class.modifier: private
focal_class.original_string: private RowMetadata writtenMetadata;
focal_class.type: RowMetadata
focal_class.var_name: writtenMetadata
focal_class.declarator: rowIdx = 0
focal_class.modifier: private
focal_class.original_string: private int rowIdx = 0;
focal_class.type: int
focal_class.var_name: rowIdx
focal_class.declarator: closed = false
focal_class.modifier: private
focal_class.original_string: private boolean closed = false;
focal_class.type: boolean
focal_class.var_name: closed
focal_class.file: dataprep-transformation/src/main/java/org/talend/dataprep/transformation/format/XlsWriter.java
focal_class.identifier: XlsWriter
focal_class.interfaces: implements TransformerWriter
focal_class.class_method_signature: XlsWriter.XlsWriter(final OutputStream output)
focal_class.full_signature: public  XlsWriter(final OutputStream output)
focal_class.identifier: XlsWriter
focal_class.modifiers: public
focal_class.parameters: (final OutputStream output)
focal_class.signature:  XlsWriter(final OutputStream output)
focal_class.class_method_signature: XlsWriter.XlsWriter(final OutputStream output, Map<String, String> parameters)
focal_class.full_signature: public  XlsWriter(final OutputStream output, Map<String, String> parameters)
focal_class.identifier: XlsWriter
focal_class.modifiers: public
focal_class.parameters: (final OutputStream output, Map<String, String> parameters)
focal_class.signature:  XlsWriter(final OutputStream output, Map<String, String> parameters)
focal_class.class_method_signature: XlsWriter.write(DataSetRow row)
focal_class.full_signature: @Override public void write(DataSetRow row)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (DataSetRow row)
focal_class.return: void
focal_class.signature: void write(DataSetRow row)
focal_class.class_method_signature: XlsWriter.write(RowMetadata metadata)
focal_class.full_signature: @Override public void write(RowMetadata metadata)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (RowMetadata metadata)
focal_class.return: void
focal_class.signature: void write(RowMetadata metadata)
focal_class.class_method_signature: XlsWriter.writeHeader(RowMetadata metadata)
focal_class.full_signature: private void writeHeader(RowMetadata metadata)
focal_class.identifier: writeHeader
focal_class.modifiers: private
focal_class.parameters: (RowMetadata metadata)
focal_class.return: void
focal_class.signature: void writeHeader(RowMetadata metadata)
focal_class.class_method_signature: XlsWriter.internalWriteRow(RowMetadata metadata, String[] nextRow)
focal_class.full_signature: private void internalWriteRow(RowMetadata metadata, String[] nextRow)
focal_class.identifier: internalWriteRow
focal_class.modifiers: private
focal_class.parameters: (RowMetadata metadata, String[] nextRow)
focal_class.return: void
focal_class.signature: void internalWriteRow(RowMetadata metadata, String[] nextRow)
focal_class.class_method_signature: XlsWriter.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: XlsWriter.safeCloseObjectBuffer()
focal_class.full_signature: private void safeCloseObjectBuffer()
focal_class.identifier: safeCloseObjectBuffer
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void safeCloseObjectBuffer()
focal_method.body: @Override
      public void write(DataSetRow row) throws IOException {
          if (!row.values().isEmpty() && row.getRowMetadata().getColumns().isEmpty()) {
              throw new IllegalStateException(
                      " If a dataset row has some values it should at least have columns just before writing the result of a non json transformation.");
          }
          // values need to be written in the same order as the columns
          String[] rowValues = row.order().toArray(DataSetRow.SKIP_TDP_ID);
          if (writtenMetadata == null) {
              rowsBuffer.appendRow(rowValues);
          } else {
              internalWriteRow(writtenMetadata, rowValues);
          }
      }
focal_method.class_method_signature: XlsWriter.write(DataSetRow row)
focal_method.full_signature: @Override public void write(DataSetRow row)
focal_method.identifier: write
focal_method.invocations: isEmpty values isEmpty getColumns getRowMetadata toArray order appendRow internalWriteRow
focal_method.modifiers: @Override public
focal_method.parameters: (DataSetRow row)
focal_method.return: void
focal_method.signature: void write(DataSetRow row)