Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 17 package javax.servlet.jsp.tagext; 18 19 import java.io.Reader ; 20 import java.io.Writer ; 21 import java.io.IOException ; 22 import javax.servlet.jsp.*; 23 24 53 54 public abstract class BodyContent extends JspWriter { 55 56 63 64 protected BodyContent(JspWriter e) { 65 super(UNBOUNDED_BUFFER , false); 66 this.enclosingWriter = e; 67 } 68 69 78 79 public void flush() throws IOException { 80 throw new IOException ("Illegal to flush within a custom tag"); 81 } 82 83 86 87 public void clearBody() { 88 try { 89 this.clear(); 90 } catch (IOException ex) { 91 throw new Error ("internal error!;"); 93 } 94 } 95 96 101 public abstract Reader getReader(); 102 103 104 109 public abstract String getString(); 110 111 112 121 122 public abstract void writeOut(Writer out) throws IOException ; 123 124 125 130 131 public JspWriter getEnclosingWriter() { 132 return enclosingWriter; 133 } 134 135 136 138 private JspWriter enclosingWriter; 139 } 140
| Popular Tags
|