Login
FossilCheckout.java at [752aad3eb7]
Login

File src/net/wanderinghorse/libfossil/FossilCheckout.java artifact 88a53d876f part of check-in 752aad3eb7


/*******************************************************************************
 * Copyright (c) 
 ******************************************************************************/
package net.wanderinghorse.libfossil;



/**
 * The wrapper for a Checkout
 */
public class FossilCheckout {

	public static int NESTED = 1;
	public static int CREATE = 2;


	long handle;

	/**
	 * The constructor
	 * 
	 */
	public FossilCheckout(String dir, int flags) {
		handle = open(dir, flags);
	}

	public void finalize() {
		close(handle);
		handle = 0;
	}

	public void close() {
		close(handle);
		handle = 0;
	}

	private static native long open(String dir, int flags);
	private static native void close(long handle);

}