1 17 18 package javax.servlet.jsp; 19 20 import java.io.IOException ; 21 22 83 84 abstract public class JspWriter extends java.io.Writer { 85 86 89 90 public static final int NO_BUFFER = 0; 91 92 96 97 public static final int DEFAULT_BUFFER = -1; 98 99 103 104 public static final int UNBOUNDED_BUFFER = -2; 105 106 112 113 protected JspWriter(int bufferSize, boolean autoFlush) { 114 this.bufferSize = bufferSize; 115 this.autoFlush = autoFlush; 116 } 117 118 125 126 abstract public void newLine() throws IOException ; 127 128 137 138 abstract public void print(boolean b) throws IOException ; 139 140 148 149 abstract public void print(char c) throws IOException ; 150 151 161 162 abstract public void print(int i) throws IOException ; 163 164 174 175 abstract public void print(long l) throws IOException ; 176 177 187 188 abstract public void print(float f) throws IOException ; 189 190 200 201 abstract public void print(double d) throws IOException ; 202 203 213 214 abstract public void print(char s[]) throws IOException ; 215 216 225 226 abstract public void print(String s) throws IOException ; 227 228 238 239 abstract public void print(Object obj) throws IOException ; 240 241 248 249 abstract public void println() throws IOException ; 250 251 259 260 abstract public void println(boolean x) throws IOException ; 261 262 270 271 abstract public void println(char x) throws IOException ; 272 273 281 282 abstract public void println(int x) throws IOException ; 283 284 292 293 abstract public void println(long x) throws IOException ; 294 295 303 304 abstract public void println(float x) throws IOException ; 305 306 314 315 abstract public void println(double x) throws IOException ; 316 317 325 326 abstract public void println(char x[]) throws IOException ; 327 328 336 337 abstract public void println(String x) throws IOException ; 338 339 347 348 abstract public void println(Object x) throws IOException ; 349 350 351 359 360 abstract public void clear() throws IOException ; 361 362 370 371 abstract public void clearBuffer() throws IOException ; 372 373 388 389 abstract public void flush() throws IOException ; 390 391 402 403 abstract public void close() throws IOException ; 404 405 410 411 public int getBufferSize() { return bufferSize; } 412 413 418 419 abstract public int getRemaining(); 420 421 427 428 public boolean isAutoFlush() { return autoFlush; } 429 430 433 434 437 protected int bufferSize; 438 439 442 protected boolean autoFlush; 443 } 444 | Popular Tags |