@@ -0,0 +1,2014 @@
+package jp.com.machine.test;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.BufferedWriter;%0Aimport java.io.File;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0Aimport java.io.PrintWriter;%0A%0A/**%0A * Mahout %E3%81%AE%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E8%A7%A3%E6%9E%90%E5%AE%9F%E8%A3%85%E3%82%AF%E3%83%A9%E3%82%B9%0A */%0Aclass FileParser extends AbstractFileParser %7B%0A%0A    /**%0A     * @param path %E5%87%BA%E5%8A%9B%E3%81%99%E3%82%8B%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E3%83%91%E3%82%B9%0A     * @param cut %E7%9C%81%E3%81%8D%E3%81%9F%E3%81%84%E3%82%AB%E3%83%A9%E3%83%A0%E3%81%AE%E6%95%B0%0A     */%0A    FileParser(String path, int cut) %7B%0A        super(path, cut);%0A    %7D%0A%0A    /**%0A     * @param path %E5%87%BA%E5%8A%9B%E3%81%99%E3%82%8B%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E3%83%91%E3%82%B9%0A     * @param cut %E7%9C%81%E3%81%8D%E3%81%9F%E3%81%84%E3%82%AB%E3%83%A9%E3%83%A0%E3%81%AE%E6%95%B0%0A     * @param splits %E5%8C%BA%E5%88%87%E3%82%8A%E6%96%87%E5%AD%97%0A     */%0A    FileParser(String path, int cut, String splits) %7B%0A        super(path, cut, splits);%0A    %7D%0A%0A    @Override%0A    void parse(File file) %7B%0A        BufferedReader br = null;%0A        BufferedWriter bw = null;%0A        try %7B%0A            br = new BufferedReader(new FileReader(file));%0A            bw = new BufferedWriter(new PrintWriter(super.path));%0A            String line = null;%0A            int lineCnt = 0;%0A            while ((line = br.readLine()) != null) %7B%0A                String%5B%5D strs = line.split(super.splits);%0A                if (strs.length %3C= super.cut) %7B%0A                    continue;%0A                %7D%0A                if (lineCnt != 0) %7B%0A                    bw.newLine();%0A                %7D%0A                int strCnt = 0;%0A                for (String str : strs) %7B%0A                    if (strCnt != 0) %7B%0A                        bw.append(%22,%22);%0A                    %7D%0A                    bw.append(str);%0A                    strCnt++;%0A                %7D%0A                lineCnt++;%0A            %7D%0A        %7D catch (FileNotFoundException e) %7B%0A            e.printStackTrace();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D finally %7B%0A            try %7B%0A                br.close();%0A            %7D catch (IOException e) %7B%0A                e.printStackTrace();%0A            %7D%0A            try %7B%0A                bw.close();%0A            %7D catch (IOException e) %7B%0A                e.printStackTrace();%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

解析の実装クラスだよ。即興で作ったよ。