if (resource != null && resource.exists()) { file = resource.getFile();
public InputStream loadInputStream() throws IOException { InputStream in = null; ServletContextResource resource = new ServletContextResource(servletContext, path); { if (resource.exists()) { in = resource.getInputStream(); } } return in; } }
public InputStream loadInputStream() throws IOException { InputStream in = null; ServletContextResource resource = new ServletContextResource(servletContext, path); { if (resource.exists()) { in = resource.getInputStream(); } } return in; } }
if (resource.exists())
if (resource.exists())
if (resource.exists())
if (resource.exists())