In RowWriterImpl:
writer.write(rowInstructions.getEndOfLine());
which is:
return this.symbolMapping.getFirstMappedCharacter(EncounteredSymbol.EOL_SYMBOL);
which is only ever one character, the \r of the \r\n:
char[] mappedCharacters = symbolToChars.get(encounteredSymbol); return mappedCharacters == null ? 0 : mappedCharacters[0];
As a workaround, I passed in a Writer that overrides write(int)
In RowWriterImpl:
writer.write(rowInstructions.getEndOfLine());
which is:
return this.symbolMapping.getFirstMappedCharacter(EncounteredSymbol.EOL_SYMBOL);
which is only ever one character, the \r of the \r\n:
char[] mappedCharacters = symbolToChars.get(encounteredSymbol); return mappedCharacters == null ? 0 : mappedCharacters[0];
As a workaround, I passed in a
Writer
that overrideswrite(int)