@@ -0,0 +1,1843 @@
+package yuku.alkitabconverter.daily_verse;%0A%0Aimport yuku.alkitab.yes2.io.RandomOutputStream;%0Aimport yuku.bintex.BintexWriter;%0A%0Aimport java.io.File;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.IOException;%0Aimport java.io.RandomAccessFile;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Scanner;%0A%0Apublic class DailyVerseProses %7B%0A%0A%09private static final String INPUT_FILE = System.getProperty(%22user.dir%22) + %22/AlkitabConverter/file/daily_verse.csv%22;%0A%09private static final String OUTPUT_FILE = System.getProperty(%22user.dir%22) + %22/AlkitabConverter/file/daily_verse.bt%22;%0A%09private List%3CInteger%3E aris = new ArrayList%3C%3E();%0A%09private List%3CInteger%3E verseCounts = new ArrayList%3C%3E();%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09DailyVerseProses proses = new DailyVerseProses();%0A%09%09proses.parse();%0A%09%09try %7B%0A%09%09%09File file = new File(OUTPUT_FILE);%0A%09%09%09RandomAccessFile raf = new RandomAccessFile(file, %22rw%22);%0A%09%09%09raf.setLength(0);%0A%09%09%09RandomOutputStream output = new RandomOutputStream(raf);%0A%09%09%09BintexWriter bw = new BintexWriter(output);%0A%09%09%09proses.write(bw);%0A%09%09%09bw.close();%0A%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%0A%09%09System.out.println(%22Process finished.%22);%0A%0A%09%7D%0A%09private void parse() %7B%0A%09%09try %7B%0A%09%09%09Scanner scanner = new Scanner(new File(INPUT_FILE), %22utf-8%22);%0A%0A%09%09%09while (scanner.hasNextLine()) %7B%0A%09%09%09%09String line = scanner.nextLine();%0A%09%09%09%09String%5B%5D data = line.split(%22,%22);%0A%09%09%09%09aris.add(Integer.parseInt(data%5B0%5D));%0A%09%09%09%09verseCounts.add(Integer.parseInt(data%5B1%5D));%0A%09%09%09%7D%0A%0A%0A%09%09%7D catch (FileNotFoundException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%0A%09%7D%0A%0A%09private void write(BintexWriter bw) %7B%0A%09%09if (aris.size() == verseCounts.size()) %7B%0A%09%09%09for (int i = 0; i %3C aris.size(); i++) %7B%0A%09%09%09%09try %7B%0A%09%09%09%09%09bw.writeInt(aris.get(i));%0A%09%09%09%09%09bw.writeUint8(verseCounts.get(i));%0A%09%09%09%09%7D catch (IOException e) %7B%0A%09%09%09%09%09e.printStackTrace();%0A%09%09%09%09%7D%0A%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Add Daily verses writer (to bintex format).