Mercurial > hg > Members > tatsuki > bench > jungle-core
view src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/persistent/DefaultJournalWriter.java @ 104:f9a0e7069811
delete worning halfway
author | one |
---|---|
date | Fri, 12 Sep 2014 16:22:22 +0900 |
parents | 18c5cb49beca |
children |
line wrap: on
line source
package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.persistent; import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAccessFile; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either; public class DefaultJournalWriter { public DefaultJournalWriter(String _fileName) { } public static Either<Error,DefaultJournalWriter> newInstance(String fileName) { RandomAccessFile journal = null; try{ journal = new RandomAccessFile(fileName,"rw"); //FileChannel ch = journal.getChannel(); long length = journal.length(); }catch(FileNotFoundException e){ }catch(IOException e){ } return null; } }