importación java.io.IOException; importación java.io.InputStream; importación java.nio.charset.StandardCharsets; importación org.apache.commons.io.IOUtils; tratar { corriente InputStream = getClass () getClassLoader () getResourceAsStream ( "a.html".. ); retorno IOUtils.toString (corriente, StandardCharsets.UTF_8); } Catch (IOException e) { retorno e.ToString (); }