com.ricebridge.csvman
Class TrimType

java.lang.Object
  extended bycom.ricebridge.csvman.TrimType
All Implemented Interfaces:
Serializable

public class TrimType
extends Object
implements Serializable

Enumeration of data field whitespace trimming options.

When loading CSV, each data field value may be surrounded by whitespace or other characters that should be ignored. These characters are trimmed (removed) from the final data field value string. The actual characters to ignore are set with CsvSpec.setTrim(java.lang.String).

The trimming options are:

None
do not trim at all
Start
trim only from the start of the value
End
trim only from the end of the value
Full
trim from both the start and the end of the value
The default setting is TrimType.Full.

See Also:
CsvSpec.setTrim(java.lang.String), Serialized Form

Field Summary
static TrimType End
          Trim end of data field value
static TrimType Full
          Trim start and end of data field value
static TrimType None
          Do not trim data field value
static TrimType Start
          Trim start of data field value
 
Constructor Summary
protected TrimType(String pName)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

None

public static final TrimType None
Do not trim data field value


Start

public static final TrimType Start
Trim start of data field value


End

public static final TrimType End
Trim end of data field value


Full

public static final TrimType Full
Trim start and end of data field value

Constructor Detail

TrimType

protected TrimType(String pName)
Method Detail

toString

public String toString()


Copyright © 2003-2006 Ricebridge