org.apache.catalina.connector
クラス ResponseWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.PrintWriter
              |
              +--org.apache.catalina.connector.ResponseWriter

public class ResponseWriter
extends java.io.PrintWriter

Wrapper around the standard java.io.PrintWriter that keeps track of whether or not any characters have ever been written (even if they are still buffered inside the PrintWriter or any other Writer that it uses above the underlying TCP/IP socket). This is required by the semantics of several calls on ServletResponse, which are required to throw an IllegalStateException if output has ever been written.

バージョン:
$Revision: 1.1 $ $Date: 2000/12/13 23:45:38 $
作成者:
Craig R. McClanahan

フィールドの概要
protected  ResponseStream stream
          The response stream to which we are attached.
 
クラス java.io.PrintWriter から継承したフィールド
out
 
クラス java.io.Writer から継承したフィールド
lock
 
コンストラクタの概要
ResponseWriter(java.io.OutputStreamWriter writer, ResponseStream stream)
          Construct a new ResponseWriter, wrapping the specified writer and attached to the specified response.
 
メソッドの概要
 void flush()
          Flush this stream, and cause the response to be committed.
 void print(boolean b)
          Print a boolean value.
 void print(char c)
          Print a character value.
 void print(char[] ca)
          Print a character array value.
 void print(double d)
          Print a double value.
 void print(float f)
          Print a float value.
 void print(int i)
          Print an integer value.
 void print(long l)
          Print a long value.
 void print(java.lang.Object o)
          Print an object value.
 void print(java.lang.String s)
          Print a String value.
 void println()
          Terminate the current line by writing the line separator string.
 void println(boolean b)
          Print a boolean value and terminate the current line.
 void println(char c)
          Print a character value and terminate the current line.
 void println(char[] ca)
          Print a character array value and terminate the current line.
 void println(double d)
          Print a double value and terminate the current line.
 void println(float f)
          Print a float value and terminate the current line.
 void println(int i)
          Print an integer value and terminate the current line.
 void println(long l)
          Print a long value and terminate the current line.
 void println(java.lang.Object o)
          Print an object value and terminate the current line.
 void println(java.lang.String s)
          Print a String value and terminate the current line.
 void write(char c)
          Write a single character.
 void write(char[] ca)
          Write an array of characters.
 void write(char[] ca, int off, int len)
          Write a portion of an array of characters.
 void write(java.lang.String s)
          Write a String.
 void write(java.lang.String s, int off, int len)
          Write a portion of a String.
 
クラス java.io.PrintWriter から継承したメソッド
checkError, close, setError, write
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

stream

protected ResponseStream stream
The response stream to which we are attached.
コンストラクタの詳細

ResponseWriter

public ResponseWriter(java.io.OutputStreamWriter writer,
                      ResponseStream stream)
Construct a new ResponseWriter, wrapping the specified writer and attached to the specified response.
パラメータ:
writer - OutputStreamWriter to which we are attached
stream - ResponseStream to which we are attached
メソッドの詳細

flush

public void flush()
Flush this stream, and cause the response to be committed.
オーバーライド:
クラス java.io.PrintWriter 内の flush

print

public void print(boolean b)
Print a boolean value.
オーバーライド:
クラス java.io.PrintWriter 内の print
パラメータ:
b - The value to be printed

print

public void print(char c)
Print a character value.
オーバーライド:
クラス java.io.PrintWriter 内の print
パラメータ:
c - The value to be printed

print

public void print(char[] ca)
Print a character array value.
オーバーライド:
クラス java.io.PrintWriter 内の print
パラメータ:
ca - The value to be printed

print

public void print(double d)
Print a double value.
オーバーライド:
クラス java.io.PrintWriter 内の print
パラメータ:
d - The value to be printed

print

public void print(float f)
Print a float value.
オーバーライド:
クラス java.io.PrintWriter 内の print
パラメータ:
f - The value to be printed

print

public void print(int i)
Print an integer value.
オーバーライド:
クラス java.io.PrintWriter 内の print
パラメータ:
i - The value to be printed.

print

public void print(long l)
Print a long value.
オーバーライド:
クラス java.io.PrintWriter 内の print
パラメータ:
l - The value to be printed

print

public void print(java.lang.Object o)
Print an object value.
オーバーライド:
クラス java.io.PrintWriter 内の print
パラメータ:
o - The value to be printed

print

public void print(java.lang.String s)
Print a String value.
オーバーライド:
クラス java.io.PrintWriter 内の print
パラメータ:
s - The value to be printed

println

public void println()
Terminate the current line by writing the line separator string.
オーバーライド:
クラス java.io.PrintWriter 内の println

println

public void println(boolean b)
Print a boolean value and terminate the current line.
オーバーライド:
クラス java.io.PrintWriter 内の println
パラメータ:
b - The value to be printed

println

public void println(char c)
Print a character value and terminate the current line.
オーバーライド:
クラス java.io.PrintWriter 内の println
パラメータ:
c - The value to be printed

println

public void println(char[] ca)
Print a character array value and terminate the current line.
オーバーライド:
クラス java.io.PrintWriter 内の println
パラメータ:
ca - The value to be printed

println

public void println(double d)
Print a double value and terminate the current line.
オーバーライド:
クラス java.io.PrintWriter 内の println
パラメータ:
d - The value to be printed

println

public void println(float f)
Print a float value and terminate the current line.
オーバーライド:
クラス java.io.PrintWriter 内の println
パラメータ:
f - The value to be printed

println

public void println(int i)
Print an integer value and terminate the current line.
オーバーライド:
クラス java.io.PrintWriter 内の println
パラメータ:
i - The value to be printed.

println

public void println(long l)
Print a long value and terminate the current line.
オーバーライド:
クラス java.io.PrintWriter 内の println
パラメータ:
l - The value to be printed

println

public void println(java.lang.Object o)
Print an object value and terminate the current line.
オーバーライド:
クラス java.io.PrintWriter 内の println
パラメータ:
o - The value to be printed

println

public void println(java.lang.String s)
Print a String value and terminate the current line.
オーバーライド:
クラス java.io.PrintWriter 内の println
パラメータ:
s - The value to be printed

write

public void write(char c)
Write a single character.
パラメータ:
c - The value to be written

write

public void write(char[] ca)
Write an array of characters.
オーバーライド:
クラス java.io.PrintWriter 内の write
パラメータ:
ca - The value to be written

write

public void write(char[] ca,
                  int off,
                  int len)
Write a portion of an array of characters.
オーバーライド:
クラス java.io.PrintWriter 内の write
パラメータ:
ca - The array from which to write
off - Starting offset
len - Number of characters to write

write

public void write(java.lang.String s)
Write a String.
オーバーライド:
クラス java.io.PrintWriter 内の write
パラメータ:
s - The value to be written

write

public void write(java.lang.String s,
                  int off,
                  int len)
Write a portion of a String.
オーバーライド:
クラス java.io.PrintWriter 内の write
パラメータ:
s - The String from which to write
off - Starting offset
len - Number of characters to write


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.