Code example for ByteArrayOutputStream

Methods: resetwriteTo

0
        } 
    } 
 
    private void flushBuffer() throws IOException { 
        out_real = response.getOutputStream();
        out_buffer.writeTo(out_real);
        out_buffer.reset();
        currentStream = out_real;
    } 
 
    /* (non-Javadoc) 
     * @see java.io.OutputStream#flush() 
     * 
     * If the buffer is not maxed yet, it won't flush. If this is really needed,  
     * call forceFlush 
     */ 
    public synchronized void flush() throws IOException { 
        if (closed) {
            return; 
        } 
Experience pair programming with AI  Get Codota for Java