日期:2014-05-17  浏览次数:20615 次

为什么在调用getBodyContent()时不通过对象而直接就能调用
public int doAfterBody() throws JspException {
// TODO Auto-generated method stub
BodyContent content = getBodyContent();
String str = content.getString();
if(str != null){
JspWriter out = getPreviousOut();
try {
out.print(str.toLowerCase());
out.flush();
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
content.clearBody();
return SKIP_BODY;
}
红色标注地方是如何在底层实现的?

------解决方案--------------------
内部方法 或者基类方法
------解决方案--------------------
探讨
内部方法 或者基类方法