You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
614 B

package com.sothr.imagetools.util;
import java.io.InputStream;
import java.net.URL;
/**
* Created by drew on 1/5/14.
*/
public class FileLoader {
private static final FileLoader instance = new FileLoader();
private FileLoader() {}
public static FileLoader get() {
return instance;
}
public URL getResource(String location) {
return Thread.currentThread().getContextClassLoader().getResource(location);
}
public InputStream getResourceStream(String location) {
return Thread.currentThread().getContextClassLoader().getResourceAsStream(location);
}
}