org.apache.commons.csv.writer
Class CSVField
java.lang.Object
org.apache.commons.csv.writer.CSVField
public class CSVField
- extends java.lang.Object
- Version:
- $Id: $
- Author:
- Martin van den Bemt
Method Summary |
int |
getFill()
|
java.lang.String |
getName()
|
int |
getSize()
|
boolean |
overrideFill()
Does this field override fill ? |
void |
setFill(int fill)
Sets overrideFill to true. |
void |
setName(java.lang.String name)
Set the name of the field |
void |
setSize(int size)
Set the size of the field. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private java.lang.String name
size
private int size
fill
private int fill
overrideFill
private boolean overrideFill
CSVField
public CSVField()
CSVField
public CSVField(java.lang.String name)
- Parameters:
name
- the name of the field
CSVField
public CSVField(java.lang.String name,
int size)
- Parameters:
name
- the name of the fieldsize
- the size of the field
getName
public java.lang.String getName()
- Returns:
- the name of the field
setName
public void setName(java.lang.String name)
- Set the name of the field
- Parameters:
name
- the name
getSize
public int getSize()
- Returns:
- the size of the field
setSize
public void setSize(int size)
- Set the size of the field.
The size will be ignored when fixedwidth is set to false in the CSVConfig
- Parameters:
size
- the size of the field.
getFill
public int getFill()
- Returns:
- the fill pattern.
setFill
public void setFill(int fill)
- Sets overrideFill to true.
- Parameters:
fill
- the file pattern
overrideFill
public boolean overrideFill()
- Does this field override fill ?
- Returns: