com.dragome.commons.compiler.classpath.JavaFileClasspathFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dragome-js-commons Show documentation
Show all versions of dragome-js-commons Show documentation
Dragome SDK module: commons
The newest version!
package com.dragome.commons.compiler.classpath;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
public class JavaFileClasspathFile extends AbstractClasspathFile
{
private File file;
public String getFilename()
{
return file != null ? file.getName() : "";
}
public void setFile(File file)
{
this.file= file;
}
public JavaFileClasspathFile(File folder, String path)
{
super(path);
this.file= new File(folder, path);
lastModified= file.lastModified();
}
public InputStream openInputStream()
{
try
{
return inputStream= new FileInputStream(file);
}
catch (FileNotFoundException e)
{
throw new RuntimeException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy