public class ResponseWriter extends PrintWriter
An instance of ResponseWriter is the PrintWriter
subclass returned by Response.getWriter()
.
It differs from the standard PrintWriter
in that:
format(String, Object...)
is the locale obtained by ServletResponse.getLocale()
checkError()
returns true, then a RuntimeIOException
is thrown to stop needless iterations.out
Constructor and Description |
---|
ResponseWriter(HttpWriter httpWriter,
Locale locale,
String encoding) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkError() |
protected void |
clearError() |
void |
close() |
void |
flush() |
PrintWriter |
format(Locale l,
String format,
Object... args) |
PrintWriter |
format(String format,
Object... args) |
boolean |
isFor(Locale locale,
String encoding) |
void |
print(boolean b) |
void |
print(char c) |
void |
print(char[] s) |
void |
print(double d) |
void |
print(float f) |
void |
print(int i) |
void |
print(long l) |
void |
print(Object obj) |
void |
print(String s) |
PrintWriter |
printf(Locale l,
String format,
Object... args) |
PrintWriter |
printf(String format,
Object... args) |
void |
println() |
void |
println(boolean b) |
void |
println(char c) |
void |
println(char[] s) |
void |
println(double x) |
void |
println(float x) |
void |
println(int x) |
void |
println(long x) |
void |
println(Object x) |
void |
println(String s) |
protected void |
reopen() |
protected void |
setError() |
void |
write(char[] buf) |
void |
write(char[] buf,
int off,
int len) |
void |
write(int c) |
void |
write(String s) |
void |
write(String s,
int off,
int len) |
append, append, append
public ResponseWriter(HttpWriter httpWriter, Locale locale, String encoding)
protected void reopen()
protected void clearError()
clearError
in class PrintWriter
public boolean checkError()
checkError
in class PrintWriter
protected void setError()
setError
in class PrintWriter
public void flush()
flush
in interface Flushable
flush
in class PrintWriter
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class PrintWriter
public void write(int c)
write
in class PrintWriter
public void write(char[] buf, int off, int len)
write
in class PrintWriter
public void write(char[] buf)
write
in class PrintWriter
public void write(String s, int off, int len)
write
in class PrintWriter
public void write(String s)
write
in class PrintWriter
public void print(boolean b)
print
in class PrintWriter
public void print(char c)
print
in class PrintWriter
public void print(int i)
print
in class PrintWriter
public void print(long l)
print
in class PrintWriter
public void print(float f)
print
in class PrintWriter
public void print(double d)
print
in class PrintWriter
public void print(char[] s)
print
in class PrintWriter
public void print(String s)
print
in class PrintWriter
public void print(Object obj)
print
in class PrintWriter
public void println()
println
in class PrintWriter
public void println(boolean b)
println
in class PrintWriter
public void println(char c)
println
in class PrintWriter
public void println(int x)
println
in class PrintWriter
public void println(long x)
println
in class PrintWriter
public void println(float x)
println
in class PrintWriter
public void println(double x)
println
in class PrintWriter
public void println(char[] s)
println
in class PrintWriter
public void println(String s)
println
in class PrintWriter
public void println(Object x)
println
in class PrintWriter
public PrintWriter printf(String format, Object... args)
printf
in class PrintWriter
public PrintWriter printf(Locale l, String format, Object... args)
printf
in class PrintWriter
public PrintWriter format(String format, Object... args)
format
in class PrintWriter
public PrintWriter format(Locale l, String format, Object... args)
format
in class PrintWriter
Copyright © 1995-2015 Webtide. All Rights Reserved.