Code example for SessionOutputBuffer

Methods: writewriteLine

    // ----------------------------------------------------------- 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) { 
            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