All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.jasper.runtime.IncludePrintWriter Maven / Gradle / Ivy

There is a newer version: 2.2.8.Final
Show newest version
package org.apache.jasper.runtime;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.io.Writer;

import javax.servlet.jsp.tagext.BodyContent;

public class IncludePrintWriter extends PrintWriter {
    public IncludePrintWriter(Writer out) {
        super(out);
    }

    public IncludePrintWriter(Writer out, boolean autoFlush) {
        super(out, autoFlush);
    }

    public IncludePrintWriter(OutputStream out) {
        super(out);
    }

    public IncludePrintWriter(OutputStream out, boolean autoFlush) {
        super(out, autoFlush);
    }

    public IncludePrintWriter(String fileName) throws FileNotFoundException {
        super(fileName);
    }

    public IncludePrintWriter(String fileName, String csn) throws FileNotFoundException, UnsupportedEncodingException {
        super(fileName, csn);
    }

    public IncludePrintWriter(File file) throws FileNotFoundException {
        super(file);
    }

    public IncludePrintWriter(File file, String csn) throws FileNotFoundException, UnsupportedEncodingException {
        super(file, csn);
    }

    @Override
    public void flush() {
        if(!(out instanceof BodyContent)) {
            super.flush();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy