org.apache.commons.csv.writer

Class CSVField


public class CSVField
extends java.lang.Object

Version:
$Id: $
Author:
Martin van den Bemt

Field Summary

private int
fill
private String
name
private boolean
overrideFill
private int
size

Constructor Summary

CSVField()
CSVField(String name)
CSVField(String name, int size)

Method Summary

int
getFill()
String
getName()
int
getSize()
boolean
overrideFill()
Does this field override fill ?
void
setFill(int fill)
Sets overrideFill to true.
void
setName(String name)
Set the name of the field
void
setSize(int size)
Set the size of the field.

Field Details

fill

private int fill

name

private String name

overrideFill

private boolean overrideFill

size

private int size

Constructor Details

CSVField

public CSVField()

CSVField

public CSVField(String name)
Parameters:
name - the name of the field

CSVField

public CSVField(String name,
                int size)
Parameters:
name - the name of the field
size - the size of the field

Method Details

getFill

public int getFill()
Returns:
the fill pattern.

getName

public String getName()
Returns:
the name of the field

getSize

public int getSize()
Returns:
the size of the field

overrideFill

public boolean overrideFill()
Does this field override fill ?
Returns:

setFill

public void setFill(int fill)
Sets overrideFill to true.
Parameters:
fill - the file pattern

setName

public void setName(String name)
Set the name of the field
Parameters:
name - the name

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.