public class EdbCSV extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
SPLIT_PATTERN |
| Constructor and Description |
|---|
EdbCSV() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static char |
get_splitter(String s_pattern,
String str)
文字列を分割している区切り文字の取得
|
static String[][] |
parse(File file)
CSV ファイルの内容を String[][] に分割
|
static List<String> |
parsetoarray(File file)
CSV ファイルの内容を String[][] に分割
|
static List<String> |
parsetoarray(String body)
文字列を List に分割
|
static List<String> |
parsetoarray(String body,
char sp)
区切り文字を指定して文字列を List に分割
|
static String[][] |
parsetostring(String body)
文字列を String[][] に分割
|
static List<String> |
readCSV(File file)
ファイルから1行(""内の改行に対応)毎に抽出
|
static void |
saveCSV(File file,
String[][] contents)
2次元文字列配列内容を CSV 形式(.csv)へ保存
|
void |
set_splitter(String s_pattern)
区切り文字の設定
default: [\t], [,], [;], [:]
|
static String SPLIT_PATTERN
public void set_splitter(String s_pattern)
s_pattern - 区切り文字のパターンstatic char get_splitter(String s_pattern, String str)
s_pattern - 区切り文字のパターンstr - 文字列public static List<String> readCSV(File file)
file - file to be read.public static String[][] parse(File file)
file - ファイル指定public static List<String> parsetoarray(File file)
file - ファイル指定public static String[][] parsetostring(String body)
body - 文字列指定public static List<String> parsetoarray(String body)
body - 分割する文字列public static List<String> parsetoarray(String body, char sp)
body - 分割する文字列sp - 区切り文字EDB Working Group at Mon Dec 15 10:46:29 JST 2025