|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.io.Writer
java.io.BufferedWriter
to.tetramorph.util.CSVWriter
public class CSVWriter
Microsof ExcelのCSV形式でString[]に格納された値を書き出すことができます。
フィールドの概要 |
---|
クラス java.io.Writer から継承されたフィールド |
---|
lock |
コンストラクタの概要 | |
---|---|
CSVWriter(File file,
char separator,
String csn)
バッファリングされた出力ストリームを作成します。 |
|
CSVWriter(File file,
String csn)
バッファリングされた出力ストリームを作成します。 |
|
CSVWriter(String filename,
String csn)
バッファリングされた出力ストリームを作成します。 |
メソッドの概要 | |
---|---|
static String |
getCSVString(String[] cols,
char separator)
文字配列をCSV形式の文字列表現にして返す。 |
void |
writeCSV(String[] cols)
文字配列をストリームに書き出す。 |
クラス java.io.BufferedWriter から継承されたメソッド |
---|
close, flush, newLine, write, write, write |
クラス java.io.Writer から継承されたメソッド |
---|
append, append, append, write, write |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public CSVWriter(File file, String csn) throws IOException
file
- 出力するファイルcsn
- 文字コードセット(ECU,SJIS,UTF-8等)
IOException
- IOエラーpublic CSVWriter(String filename, String csn) throws IOException
filename
- ファイル名csn
- 文字コードセット(SJIS,EUC,UTF-8等)
IOException
- IOエラーpublic CSVWriter(File file, char separator, String csn) throws IOException
file
- ファイルseparator
- ','か'\t'等。csn
- 文字コードセット(SJIS,EUC,UTF-8等)
IOException
- IOエラーメソッドの詳細 |
---|
public void writeCSV(String[] cols) throws IOException
cols
- 1行分の列データを配列で指定する。
IOException
- IOエラーpublic static String getCSVString(String[] cols, char separator)
cols
- 1行分の列データ
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |