* is not done yet. Right now we're just hardcoding the actual
* compilers that are created.
*/
- public Compiler createCompiler() throws JasperException {
+ public Compiler createCompiler() {
if (jspCompiler != null ) {
return jspCompiler;
}
// ==================== Manipulating the class ====================
- public Class<?> load()
- throws JasperException, FileNotFoundException
- {
+ public Class<?> load() throws JasperException {
try {
getJspLoader();
String encoding,
InputStreamReader reader,
ErrorDispatcher err)
- throws JasperException, FileNotFoundException {
+ throws JasperException {
this.context = ctxt;
this.err = err;
* current position in the current file is remembered.
*/
private void pushFile(String file, String encoding,
- InputStreamReader reader)
- throws JasperException, FileNotFoundException {
+ InputStreamReader reader) throws JasperException {
// Register the file
String longName = file;
*/
package org.apache.jasper.compiler;
-import java.io.IOException;
import java.io.PrintWriter;
/**
this.writer = writer;
}
- public void close() throws IOException {
+ public void close() {
writer.close();
}
private void _initialize(Servlet servlet, ServletRequest request,
ServletResponse response, String errorPageURL,
- boolean needsSession, int bufferSize, boolean autoFlush)
- throws IOException {
+ boolean needsSession, int bufferSize, boolean autoFlush) {
// initialize state
this.servlet = servlet;
* JspServletWrapper for JSP pages.
*/
public JspServletWrapper(ServletConfig config, Options options, String jspUri,
- boolean isErrorPage, JspRuntimeContext rctxt)
- throws JasperException {
+ boolean isErrorPage, JspRuntimeContext rctxt) {
this.isTagFile = false;
this.config = config;
String tagFilePath,
TagInfo tagInfo,
JspRuntimeContext rctxt,
- URL tagFileJarUrl)
- throws JasperException {
+ URL tagFileJarUrl) {
this.isTagFile = true;
this.config = null; // not used
this.reload = reload;
}
- public Servlet getServlet()
- throws ServletException, IOException, FileNotFoundException
- {
+ public Servlet getServlet() throws ServletException {
if (reload) {
synchronized (this) {
// Synchronizing on jsw enables simultaneous loading