Code example for SessionOutputBuffer

Methods: write

0
    } 
 
    @Override 
    public void write(final int b) throws IOException {
        if (this.closed) {
            throw new IOException("Attempted write to closed stream.");
        } 
        if (this.total < this.contentLength) {
            this.out.write(b);
            this.total++;
        } 
    } 
 
}