Code example for SessionOutputBuffer

Methods: writewriteLine

0
    } 
 
    // ----------------------------------------------------------- Public Methods 
    /** 
     * Must be called to ensure the internal cache is flushed and the closing 
     * chunk is written. 
     * @throws IOException in case of an I/O error 
     */ 
    public void finish() throws IOException { 
        if (!this.wroteLastChunk) { 
            flushCache(); 
            writeClosingChunk(); 
            this.wroteLastChunk = true; 
        } 
    } 
 
    // -------------------------------------------- OutputStream Methods 
    public void write(int b) throws IOException { 
        if (this.closed) { 
            throw new IOException("Attempted write to closed stream."); 
Connect your IDE to all the code out there  Get Codota for Java