unlockha / beanio

Automatically exported from code.google.com/p/beanio
Apache License 2.0
1 stars 0 forks source link

Cannot represent "no escape" in parser configuration #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Although the documentation says that CSV streams can support not having an 
"escape", there is no way (to my knowledge) to represent this in the XML 
mapping definition.

For example:
<beanio>
   <stream name="input" format="csv">
      <parser>
      <property name="delimiter" value=","/>
      <property name="quote" value="&quot;"/>
      <property name="escape" value=""/>
</parser>
      <record name="record" class="map">
         <field name="values" collection="list" maxOccurs="unbounded"/>
      </record>
   </stream>
</beanio>

An exception is thrown if the escape property is set to empty as show above.

Original issue reported on code.google.com by btoc...@gmail.com on 22 May 2012 at 3:10

GoogleCodeExporter commented 8 years ago
What are you trying to accomplish?  Without an escape character, generated 
output may be unreadable.  Can you provide an example of how you expect 
unescaped delimiters and quotations to be output?  Do you even need to use CSV 
or would a comma delimited format suffice?

Thanks,
Kevin

Original comment by kevin.s...@gmail.com on 23 May 2012 at 3:10

GoogleCodeExporter commented 8 years ago
If no further information is provided, this issue will be closed.

Original comment by kevin.s...@gmail.com on 20 Jun 2012 at 1:16

GoogleCodeExporter commented 8 years ago

Original comment by kevin.s...@gmail.com on 23 Jun 2012 at 6:57