view src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/persistent/DefaultJournalWriter.java @ 56:18c5cb49beca

mark
author Shoshi TAMAKI
date Fri, 08 Feb 2013 20:14:31 +0900
parents
children f9a0e7069811
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;
	}
}