FileDocCategorySizeDatePackage
StrutsBodyContent.javaAPI DocExample4294Mon Jul 23 13:26:16 BST 2007org.apache.struts2.views.jsp.ui

StrutsBodyContent

public class StrutsBodyContent extends javax.servlet.jsp.tagext.BodyContent
StrutsBodyContent

Fields Summary
private StringBuffer
buffer
Constructors Summary
public StrutsBodyContent(javax.servlet.jsp.JspWriter jspWriter)



       
        super(jspWriter);
    
Methods Summary
public voidclear()

        buffer = new StringBuffer();
    
public voidclearBuffer()

        clear();
    
public voidclose()

        buffer = null;
    
public java.io.ReadergetReader()

        return new StringReader(buffer.toString());
    
public intgetRemaining()

        return 0;
    
public java.lang.StringgetString()

        return buffer.toString();
    
public voidnewLine()

        buffer.append("\n");
    
public voidprint(char c)

        buffer.append(c);
    
public voidprint(int i)

        buffer.append(i);
    
public voidprint(long l)

        buffer.append(l);
    
public voidprint(float v)

        buffer.append(v);
    
public voidprint(double v)

        buffer.append(v);
    
public voidprint(char[] chars)

        buffer.append(chars);
    
public voidprint(java.lang.String s)

        buffer.append(s);
    
public voidprint(java.lang.Object o)

        buffer.append(o);
    
public voidprint(boolean b)

        buffer.append(b);
    
public voidprintln()

        newLine();
    
public voidprintln(boolean b)

        print(b);
        newLine();
    
public voidprintln(char c)

        print(c);
        newLine();
    
public voidprintln(int i)

        print(i);
        newLine();
    
public voidprintln(long l)

        print(l);
        newLine();
    
public voidprintln(float v)

        print(v);
        newLine();
    
public voidprintln(double v)

        print(v);
        newLine();
    
public voidprintln(char[] chars)

        print(chars);
        newLine();
    
public voidprintln(java.lang.String s)

        print(s);
        newLine();
    
public voidprintln(java.lang.Object o)

        print(o);
        newLine();
    
public voidwrite(char[] cbuf, int off, int len)
Write a portion of an array of characters.

param
cbuf Array of characters
param
off Offset from which to start writing characters
param
len Number of characters to write
throws
IOException If an I/O error occurs

        buffer.append(cbuf, off, len);
    
public voidwriteOut(java.io.Writer writer)

        writer.write(buffer.toString());