Results 1 to 4 of 4

Thread: new line character in Header on windows server

  1. #1

    Default new line character in Header on windows server

    Hi,
    We are able to generate output file with header by implementing FlatFileHeaderCallback and using delegate for FlatFileItemWriter.

    But we see a special character(new line character) when we see output in windows server 2003 platform and we dont see new line character on windows XP .

    When I further looked at FlatFileitemwriter soruce code I see following
    if (headerCallback != null) {
    try {
    headerCallback.writeHeader(outputState.outputBuffe redWriter);
    outputState.write("\n");
    }.

    I think we need to replace "\n" with DEFAULT_LINE_SEPARATOR which is available in the class.

    I have created my own flatfileitemwriter and made the change and we see proper output in windows server 2003 . Please let me know if this fix can go into framework.

    Thanks

  2. #2
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    Can you just create a JIRA issue please?

  3. #3

    Default Jira issue

    Issue created

    Key: BATCH-1320
    URL: http://jira.springsource.org/browse/BATCH-1320
    Project: Spring Batch
    Issue Type: Bug
    Components: Infrastructure
    Affects Versions: 2.0.0
    Environment: Windows server 2003
    Reporter: anil

  4. #4

    Default

    Thanks Dave . That was really quick fix Appreciate it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •