All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dragome.commons.compiler.classpath.AbstractClasspathFile Maven / Gradle / Ivy

The newest version!
package com.dragome.commons.compiler.classpath;

import java.io.IOException;
import java.io.InputStream;

public abstract class AbstractClasspathFile implements ClasspathFile
{
	protected long lastModified;
	protected InputStream inputStream;
	protected String path;

	public AbstractClasspathFile(String path)
	{
		this.path= path;
	}

	public long getLastModified()
	{
		return lastModified;
	}

	public void close()
	{
		try
		{
			inputStream.close();
		}
		catch (IOException e)
		{
			throw new RuntimeException(e);
		}
	}

	public String getPath()
	{
		return path;
	}

	public long getCRC()
	{
		return lastModified;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy