1.directorio de archivos de recursos:
2. Lea el archivo de recursos.
El código es el siguiente (ejemplo):
URL url = this.getClass().getClassLoader().getResource("active/zppage.html");
String urlPath = this.getClass().getClassLoader().getResource("active/zppage.html").getPath();
3. Análisis de archivos estáticos html
El código es el siguiente (ejemplo):
String tempStr ="";
String content = "";
InputStream is = url.openStream();
BufferedReader br = new BufferedReader(new InputStreamReader(is));
while ((tempStr = br.readLine()) != null) {
content += (tempStr + "\r");
};