net.java.sen.util
Class CSVData

java.lang.Object
  extended bynet.java.sen.util.CSVData

public class CSVData
extends java.lang.Object

create CSV string.


Field Summary
protected  java.util.LinkedList elements
           
 
Constructor Summary
CSVData()
          Constructor for CSVData
 
Method Summary
 void append(java.lang.String element)
          Append the specified element to the buffer.
 void clear()
          remove all element.
protected  java.lang.String enquote(java.lang.String element)
           
 void insert(int index, java.lang.String element)
          Insert the specified element to the buffer.
static void main(java.lang.String[] args)
           
 void remove(int index)
          Removes the element at the specified position in the buffer.
 void set(int index, java.lang.String element)
          Replaces the element at the specified position in the buffer with the specified element.
 java.lang.String toString()
          Return a string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

elements

protected java.util.LinkedList elements
Constructor Detail

CSVData

public CSVData()
Constructor for CSVData

Method Detail

append

public void append(java.lang.String element)
Append the specified element to the buffer.

Parameters:
element - element to be appended.

insert

public void insert(int index,
                   java.lang.String element)
Insert the specified element to the buffer.

Parameters:
index - index at which the specified element is to be inserted.
element - element to be inserted.

remove

public void remove(int index)
Removes the element at the specified position in the buffer.

Parameters:
index - index at which the specified element is to be removed.

set

public void set(int index,
                java.lang.String element)
Replaces the element at the specified position in the buffer with the specified element.

Parameters:
index - index of element to replace.
element - element to be stored at the specified position.

clear

public void clear()
remove all element.


toString

public java.lang.String toString()
Return a string representation.

Returns:
string representation of this CSVData.

enquote

protected java.lang.String enquote(java.lang.String element)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception