net.java.sen.util
クラス CSVData

java.lang.Object
  上位を拡張 net.java.sen.util.CSVData

public class CSVData
extends java.lang.Object

A class used to build a line of CSV data


フィールドの概要
protected  java.util.LinkedList<java.lang.String> elements
          The values comprising the line
 
コンストラクタの概要
CSVData()
           
 
メソッドの概要
 void append(java.lang.String element)
          Appends a value to the line
 void clear()
          Removes all values from the line
protected  java.lang.String enquote(java.lang.String string)
          Surrounds a string with double quotes if it contains either a double quote or a comma; replaces double quotes with a pair of double quotes
 void insert(int index, java.lang.String element)
          Inserts a value into the line at a given index
 void remove(int index)
          Removes the value at the given index of the line
 void set(int index, java.lang.String element)
          Replaces the value at the index of the line with a new value
 java.lang.String toString()
          Returns the line of CSV data represented by this class
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

elements

protected java.util.LinkedList<java.lang.String> elements
The values comprising the line

コンストラクタの詳細

CSVData

public CSVData()
メソッドの詳細

append

public void append(java.lang.String element)
Appends a value to the line

パラメータ:
element - The element to be appended.

insert

public void insert(int index,
                   java.lang.String element)
Inserts a value into the line at a given index

パラメータ:
index - The index at which the value is to be inserted
element - The value to be inserted

remove

public void remove(int index)
Removes the value at the given index of the line

パラメータ:
index - The index from which to remove a value

set

public void set(int index,
                java.lang.String element)
Replaces the value at the index of the line with a new value

パラメータ:
index - The index at which to replace a value
element - The value with which to replace

clear

public void clear()
Removes all values from the line


toString

public java.lang.String toString()
Returns the line of CSV data represented by this class

オーバーライド:
クラス java.lang.Object 内の toString
戻り値:
The line of CSV data

enquote

protected java.lang.String enquote(java.lang.String string)
Surrounds a string with double quotes if it contains either a double quote or a comma; replaces double quotes with a pair of double quotes

パラメータ:
string - The string to quote
戻り値:
The quoted string


Copyright ? 2008. All Rights Reserved.