net.simplace.sim.io.interfaces.CSVInterface

implementation of the FWSimInterface giving access to resources from and output to files divider can be given in xml-configuration tag. If not given divider will by default be 'tab' or '\t' Use Interface by FWSimInterface.getLinesOfFile();


public class CSVInterface extends FILEInterface {
// Public Constructors
public CSVInterface(String aName, int aPoolSize, String aFileName, String
aDivider, long aSkipAboveSize, int aHeaderSize);
// Protected Constructors
protected CSVInterface(String aName, Element aInterfaceElement);

// Protected Instance Variables
protected String iDivider;
protected long iSkipAboveSize;
protected int iHeaderSize;

// Public Instance Methods
public FWSimResourceCache read(FWSimSession aFwSimSession, String aProjectID,
Object aCache, LinkedHashMap aKeyMap, FWSimInputAdapter aResourceAdapter,
String aUniqueID, FWSimInterface.INTERFACE_TYPE aInterfaceType)
throws MissingSimResourceException; // Defines FWSimInterface

public FilePool getInterface(FWSimVarMap aVarMap, FWSimVariable.CONTENT_TYPE
aContentType); // Defines FILEInterface

implementation of the get interface method.
public String getDivider();

divider can be given in xml-configuration tag. If not given divider will by default be 'tab' or '\t'
returns the divider the string is split with to read the data from columns
public int getHeaderSize();


returns
public long getSkipAboveSize();


returns
public Element toXML(); // Defines FILEInterface


returns Element containing configuration for this Interface


}



Hierarchy: java.lang.Object - FWSimInterface - FILEInterface - CSVInterface



Passed to: net.simplace.sim.io.output.adapter.CSVOutputAdapter(), net.simplace.sim.io.resources.adapter.CSVResourceAdapter()