com.evanmclean.evlib.escape
Class EscCsv

java.lang.Object
  extended by com.evanmclean.evlib.escape.EscCsv

public final class EscCsv
extends Object

Makes a string safe to use as a field within a comma separated (CSV) file.

Basically encapsulates the string in a pair of double-quotes if the string contains any of the following:

Author:
Evan McLean McLean Computer Services (see the overview for copyright and licensing.)

Method Summary
 String text(Object obj)
           Makes a string safe to use as a field within a comma separated (CSV) file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

text

public String text(Object obj)

Makes a string safe to use as a field within a comma separated (CSV) file.

Parameters:
obj -
Returns:
The substituted string, or null if obj was null.