package default_package;

import java.io.File;

public class VoidFile extends File{
	private boolean isVCEncrypted;
	private String path;
	public VoidFile(String path) {
		super(path);
		this.path = path;
		isVCEncrypted = getExtension().substring(0,2).equals("VC");
	}
	public boolean getIsVCEncrypted() {
		return isVCEncrypted;
	}
	public void setIsVCEncrypted() {
		isVCEncrypted = getExtension().substring(0,2).equals("VC");
	}
	public String getExtension() {
		if (this.path.lastIndexOf('.') > 0) {
		    return path.substring(path.lastIndexOf('.')+1);
		}
		return null;
	}
	public void setExtension(String path) {
		VoidFile vf = new VoidFile(path.replace("\\", "/"));
			vf.renameTo(new File(path + "VC" + getExtension()));
	}
}

package default_package;

import java.io.File;

public class VoidFile extends File{
	private boolean isVCEncrypted;
	private String path;
	public VoidFile(String path) {
		super(path);
		this.path = path;
		isVCEncrypted = getExtension().substring(0,2).equals("VC");
	}
	//Checks if the file is encrypted with VoidCrypt
	public boolean getIsVCEncrypted() {
		return isVCEncrypted;
	}
	public void setIsVCEncrypted() {
		isVCEncrypted = getExtension().substring(0,2).equals("VC");
	}
	public String getExtension() {
		if (this.path.lastIndexOf('.') > 0) {
		    return path.substring(path.lastIndexOf('.')+1);
		}
		return null;
	}
	public void setExtension(String path) {
		VoidFile vf = new VoidFile(path.replace("\\", "/"));
			vf.renameTo(new File(path + "VC" + getExtension()));
	}
}

Update VoidFile.java