Tabnine Logo
JspWriter.flush
Code IndexAdd Tabnine to your IDE (free)

How to use
flush
method
in
javax.servlet.jsp.JspWriter

Best Java code snippets using javax.servlet.jsp.JspWriter.flush (Showing top 20 results out of 603)

origin: org.freemarker/freemarker

@Override
public void include(String url) throws ServletException, IOException {
  jspOut.flush();
  request.getRequestDispatcher(url).include(request, response);
}
origin: org.freemarker/freemarker

@Override
public void flush() throws IOException {
  if (buf == null) {
    getEnclosingWriter().flush();
  }
}
origin: org.freemarker/freemarker

@Override
public void include(String url, boolean flush) throws ServletException, IOException {
  if (flush) {
    jspOut.flush();
  }
  final PrintWriter pw = new PrintWriter(jspOut);
  request.getRequestDispatcher(url).include(request, new HttpServletResponseWrapper(response) {
    @Override
    public PrintWriter getWriter() {
      return pw;
    }
    
    @Override
    public ServletOutputStream getOutputStream() {
      throw new UnsupportedOperationException("JSP-included resource must use getWriter()");
    }
  });
  pw.flush();
}
origin: apache/hive

try {
 if (response.isCommitted()) {
  out.flush();
 } else {
  out.clearBuffer();
origin: apache/hive

try {
 if (response.isCommitted()) {
  out.flush();
 } else {
  out.clearBuffer();
origin: org.springframework.extensions.surf/spring-surf

/**
 * Flush out.
 * 
 * @throws IOException
 *             Signals that an I/O exception has occurred.
 */
public void flushOut() throws java.io.IOException
{
  out.flush();
}
origin: org.apache.myfaces.core/myfaces-api

@Override
public void flush() throws IOException
{
  _pageContext.getOut().flush();
}
origin: com.caucho/resin

/**
 * Flushes the buffer and the writer.
 */
public void flush()
{
 try {
  _jspWriter.flush();
 } catch (IOException e) {
  log.log(Level.FINE, e.toString(), e);
 }
}
origin: org.freemarker/freemarker-gae

@Override
public void include(String url) throws ServletException, IOException {
  jspOut.flush();
  request.getRequestDispatcher(url).include(request, response);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

@Override
public void include(String url) throws ServletException, IOException {
  jspOut.flush();
  request.getRequestDispatcher(url).include(request, response);
}
origin: org.freemarker/com.springsource.freemarker

public void flush() throws IOException {
  if(buf == null) {
    getEnclosingWriter().flush();
  }
}
origin: com.mockrunner/mockrunner-servlet

public void include(String path, boolean flush) throws ServletException, IOException
{
  if(flush)
  {
    jspWriter.flush();
  }
  include(path);
}
origin: org.apache.tiles/tiles-request-jsp

/** {@inheritDoc} */
@Override
public void flush() {
  try {
    writer.flush();
  } catch (IOException e) {
    log.error("Error when writing in JspWriter", e);
    setError();
  }
}
origin: org.freemarker/freemarker-gae

@Override
public void flush() throws IOException {
  if (buf == null) {
    getEnclosingWriter().flush();
  }
}
origin: org.apache.tiles/com.springsource.org.apache.tiles.jsp

/** {@inheritDoc} */
@Override
public void flush() {
  try {
    writer.flush();
  } catch (IOException e) {
    log.error("Error when writing in JspWriter", e);
    setError();
  }
}
origin: com.mockrunner/mockrunner-jdk1.3-j2ee1.3

public void include(String path, boolean flush) throws ServletException, IOException
{
  if(flush)
  {
    jspWriter.flush();
  }
  include(path);
}
origin: com.liferay.faces/liferay-faces-util

@Override
public void flush() throws IOException {
  getWrapped().flush();
}
origin: com.mockrunner/mockrunner-jdk1.4-j2ee1.3

public void include(String path, boolean flush) throws ServletException, IOException
{
  if(flush)
  {
    jspWriter.flush();
  }
  include(path);
}
origin: net.sourceforge.stripes/stripes

/** Try to flush the page context's output buffer. If an exception is thrown, just log it. */
protected void tryFlush(PageContext pageContext) {
  try {
    if (pageContext != null)
      pageContext.getOut().flush();
  }
  catch (IOException e) {
    // This seems to happen once at the beginning and once at the end. Don't know why.
    log.debug("Failed to flush buffer: ", e.getMessage());
  }
}
origin: org.grails/grails-web-jsp

@Override
public void flush() throws IOException {
  if (streamBuffer == null) {
    getEnclosingWriter().flush();
  }
}
javax.servlet.jspJspWriterflush

Javadoc

Flush the stream. If the stream has saved any characters from the various write() methods in a buffer, write them immediately to their intended destination. Then, if that destination is another character or byte stream, flush it. Thus one flush() invocation will flush all the buffers in a chain of Writers and OutputStreams.

The method may be invoked indirectly if the buffer size is exceeded.

Once a stream has been closed, further write() or flush() invocations will cause an IOException to be thrown.

Popular methods of JspWriter

  • print
    Print an array of characters. The characters are written to the JspWriter's buffer or, if no buffer
  • write
  • clearBuffer
  • println
    Print an array of characters and then terminate the line. This method behaves as though it invokes p
  • getBufferSize
  • clear
    Clear the contents of the buffer. If the buffer has been already been flushed then the clear operati
  • append
  • close
    Close the stream, flushing it first. This method needs not be invoked explicitly for the initial Jsp
  • getRemaining
    This method returns the number of unused bytes in the buffer.
  • newLine
    Write a line separator. The line separator string is defined by the system property line.separator,
  • isAutoFlush
    This method indicates whether the JspWriter is autoFlushing.
  • isAutoFlush

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now