FileDocCategorySizeDatePackage
StrutsMockBodyContent.javaAPI DocExample4054Mon Jul 23 13:26:16 BST 2007org.apache.struts2.views.jsp

StrutsMockBodyContent

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

Fields Summary
private javax.servlet.jsp.JspWriter
jspWriter
private String
body
Constructors Summary
public StrutsMockBodyContent(javax.servlet.jsp.JspWriter jspWriter)



       
        super(jspWriter);
        this.jspWriter = jspWriter;
    
Methods Summary
public voidclear()

        jspWriter.clear();
    
public voidclearBuffer()

        jspWriter.clearBuffer();
    
public voidclose()

        jspWriter.close();
    
public java.io.ReadergetReader()

        return null;
    
public intgetRemaining()

        return jspWriter.getRemaining();
    
public java.lang.StringgetString()

        return body;
    
public voidnewLine()

        jspWriter.newLine();
    
public voidprint(double v)

        jspWriter.print(v);
    
public voidprint(int i)

        jspWriter.print(i);
    
public voidprint(long l)

        jspWriter.print(l);
    
public voidprint(float v)

        jspWriter.print(v);
    
public voidprint(boolean b)

        jspWriter.print(b);
    
public voidprint(java.lang.String s)

        jspWriter.print(s);
    
public voidprint(char c)

        jspWriter.print(c);
    
public voidprint(java.lang.Object o)

        jspWriter.print(o);
    
public voidprint(char[] chars)

        jspWriter.print(chars);
    
public voidprintln()

        jspWriter.println();
    
public voidprintln(char c)

        jspWriter.println(c);
    
public voidprintln(java.lang.String s)

        jspWriter.println(s);
    
public voidprintln(char[] chars)

        jspWriter.println(chars);
    
public voidprintln(boolean b)

        jspWriter.println(b);
    
public voidprintln(long l)

        jspWriter.println(l);
    
public voidprintln(int i)

        jspWriter.println(i);
    
public voidprintln(float v)

        jspWriter.println(v);
    
public voidprintln(double v)

        jspWriter.println(v);
    
public voidprintln(java.lang.Object o)

        jspWriter.println(o);
    
public voidsetString(java.lang.String body)

        this.body = body;
    
public voidwrite(char[] chars, int i, int i1)

        jspWriter.write(chars, i, i1);
    
public voidwriteOut(java.io.Writer writer)

        writer.write(body);