Mercurial > hg > Members > kazuma > jungle-ormapper
view src/main/java/jp/ac/u_ryukyu/ie/cr/jungle/persistent/DefaultJournalWriter.java @ 0:44465893e8b8
first Commit
author | Kazuma |
---|---|
date | Wed, 30 Nov 2016 01:47:55 +0900 |
parents | |
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; } }