Mercurial > hg > Members > kazuma > jungle-ormapper
view src/main/java/jp/ac/u_ryukyu/ie/cr/jungle/persistent/DefaultJournalWriter.java @ 7:cd5f2ba0f894 default tip
modify jungleTest
author | tatsuki |
---|---|
date | Thu, 01 Dec 2016 16:23:13 +0900 |
parents | 44465893e8b8 |
children |
line wrap: on
line source
package jp.ac.u_ryukyu.ie.cr.jungle.persistent; import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAccessFile; import jp.ac.u_ryukyu.ie.cr.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; } }