Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

can quoteChar be disabled? #32

@dirkraft

Description

@dirkraft

I'm using jackson to convert TSV piped output (from mysql command) to CSV. Right now I have to pick a character that will never happen to avoid the _nextQuotedString processing block , since this output is never quoted. If a cell starts with the quote char, it asplodes.

So I'd rather disable the quote char entirely. This is what I'm currently doing which for my input which effectively disables quoted cells.

mapper.reader(String[].class).with(CsvSchema.emptySchema()
            .withColumnSeparator('\t')
            .withQuoteChar('\0')
)

This works, but is semantically inaccurate (I think?). Would it be possible to disable the quoteChar (and thus quoted cell values) altogether, to prevent any accidental interpretation of ANY character as starting a quoted value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions