jrun.jsp.runtime
Class JRunJspWriter

jrun.jsp.runtime.JRunJspWriter

public class JRunJspWriter

This contains our implementation of the JspWriter object. Notes: 1) If buffer size is none let all write methods fall through to PrintWriter 2) Use CharArrayWriter for buffer, always check length first to make sure it never gets bigger, this means writes larger than buffer size should fall through to PrintWriter


Inner Class Summary
 class JRunJspWriter.AutoFlushException
          {page}:{line} Buffer size exceeded, increase buffer or set autoFlush to true
 class JRunJspWriter.BaseIOException
           
 class JRunJspWriter.ClearAfterFlushException
          {page}:{line} Clear after flush
 class JRunJspWriter.JspWriterClosedException
          {page}:{line} JspWriter closed
 
Field Summary
static char[] NEWLINE
           
 
Constructor Summary
protected JRunJspWriter(javax.servlet.ServletResponse response, int bufferSize, boolean autoFlush)
           
 
Method Summary
 void clear()
           
 void clearBuffer()
           
 void close()
           
 void flush()
           
 int getRemaining()
           
 void newLine()
           
 void print(boolean b)
           
 void print(char c)
           
 void print(char[] c)
           
 void print(double d)
           
 void print(float f)
           
 void print(int i)
           
 void print(long l)
           
 void print(java.lang.Object o)
           
 void print(java.lang.String s)
           
 void println()
           
 void println(boolean b)
           
 void println(char c)
           
 void println(char[] s)
           
 void println(double d)
           
 void println(float f)
           
 void println(int i)
           
 void println(long l)
           
 void println(java.lang.Object o)
           
 void println(java.lang.String s)
           
 void write(char[] c, int start, int length)
           
 void write(int c)
           
 void write(java.lang.String str, int off, int len)
           
 

Field Detail

NEWLINE

public static final char[] NEWLINE
Constructor Detail

JRunJspWriter

protected JRunJspWriter(javax.servlet.ServletResponse response,
                        int bufferSize,
                        boolean autoFlush)
                 throws java.io.IOException
Method Detail

clear

public void clear()
           throws java.io.IOException

clearBuffer

public void clearBuffer()
                 throws java.io.IOException

getRemaining

public int getRemaining()

flush

public void flush()
           throws java.io.IOException

close

public void close()
           throws java.io.IOException

print

public void print(java.lang.String s)
           throws java.io.IOException

print

public void print(boolean b)
           throws java.io.IOException

print

public void print(char c)
           throws java.io.IOException

print

public void print(int i)
           throws java.io.IOException

print

public void print(long l)
           throws java.io.IOException

print

public void print(float f)
           throws java.io.IOException

print

public void print(double d)
           throws java.io.IOException

print

public void print(char[] c)
           throws java.io.IOException

print

public void print(java.lang.Object o)
           throws java.io.IOException

newLine

public void newLine()
             throws java.io.IOException

println

public void println()
             throws java.io.IOException

println

public void println(boolean b)
             throws java.io.IOException

println

public void println(int i)
             throws java.io.IOException

println

public void println(long l)
             throws java.io.IOException

println

public void println(float f)
             throws java.io.IOException

println

public void println(double d)
             throws java.io.IOException

println

public void println(java.lang.Object o)
             throws java.io.IOException

println

public void println(char c)
             throws java.io.IOException

println

public void println(char[] s)
             throws java.io.IOException

println

public void println(java.lang.String s)
             throws java.io.IOException

write

public void write(int c)
           throws java.io.IOException

write

public void write(java.lang.String str,
                  int off,
                  int len)
           throws java.io.IOException

write

public void write(char[] c,
                  int start,
                  int length)
           throws java.io.IOException


Copyright � 2002 Macromedia Corporation. All Rights Reserved.