public String getQuery(String nameFile, Package pathFile)
{
// How to get on InputStrem nameFile and pathFile
}
我无法通过类加载器
String path = getClass().getPackage().getName().replace('.', File.pathSeparatorChar);
String file = path + "file.txt";
InputStream in = this.getClass().getClassLoader().getResourceAsStream(file);
返回= null