Package org.eclipse.jetty.server
Class ResponseWriter
java.lang.Object
java.io.Writer
java.io.PrintWriter
org.eclipse.jetty.server.ResponseWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Specialized PrintWriter for servlet Responses
An instance of ResponseWriter is the PrintWriter subclass returned by Response.getWriter().
It differs from the standard PrintWriter in that:
- It does not support autoflush
- The default Locale for
format(String, Object...)is the locale obtained byServletResponse.getLocale() - If a write or print method is called while
checkError()returns true, then aRuntimeIOExceptionis thrown to stop needless iterations. - The writer may be reopen to allow for recycling
-
Constructor Summary
ConstructorsConstructorDescriptionResponseWriter(HttpWriter httpWriter, Locale locale, String encoding) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.voidclose()Deprecated.voidDeprecated.voidflush()Deprecated.Deprecated.Deprecated.booleanDeprecated.voidprint(boolean b) Deprecated.voidprint(char c) Deprecated.voidprint(char[] s) Deprecated.voidprint(double d) Deprecated.voidprint(float f) Deprecated.voidprint(int i) Deprecated.voidprint(long l) Deprecated.voidDeprecated.voidDeprecated.Deprecated.Deprecated.voidprintln()Deprecated.voidprintln(boolean b) Deprecated.voidprintln(char c) Deprecated.voidprintln(char[] s) Deprecated.voidprintln(double x) Deprecated.voidprintln(float x) Deprecated.voidprintln(int x) Deprecated.voidprintln(long x) Deprecated.voidDeprecated.voidDeprecated.voidwrite(char[] buf) Deprecated.voidwrite(char[] buf, int off, int len) Deprecated.voidwrite(int c) Deprecated.voidDeprecated.voidDeprecated.Methods inherited from class java.io.PrintWriter
append, append, appendMethods inherited from class java.io.Writer
nullWriter
-
Constructor Details
-
ResponseWriter
Deprecated.
-
-
Method Details
-
isFor
Deprecated. -
checkError
public boolean checkError()Deprecated.- Overrides:
checkErrorin classPrintWriter
-
flush
public void flush()Deprecated.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classPrintWriter
-
close
public void close()Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classPrintWriter
-
complete
Deprecated. -
write
public void write(int c) Deprecated.- Overrides:
writein classPrintWriter
-
write
public void write(char[] buf, int off, int len) Deprecated.- Overrides:
writein classPrintWriter
-
write
public void write(char[] buf) Deprecated.- Overrides:
writein classPrintWriter
-
write
Deprecated.- Overrides:
writein classPrintWriter
-
write
Deprecated.- Overrides:
writein classPrintWriter
-
print
public void print(boolean b) Deprecated.- Overrides:
printin classPrintWriter
-
print
public void print(char c) Deprecated.- Overrides:
printin classPrintWriter
-
print
public void print(int i) Deprecated.- Overrides:
printin classPrintWriter
-
print
public void print(long l) Deprecated.- Overrides:
printin classPrintWriter
-
print
public void print(float f) Deprecated.- Overrides:
printin classPrintWriter
-
print
public void print(double d) Deprecated.- Overrides:
printin classPrintWriter
-
print
public void print(char[] s) Deprecated.- Overrides:
printin classPrintWriter
-
print
Deprecated.- Overrides:
printin classPrintWriter
-
print
Deprecated.- Overrides:
printin classPrintWriter
-
println
public void println()Deprecated.- Overrides:
printlnin classPrintWriter
-
println
public void println(boolean b) Deprecated.- Overrides:
printlnin classPrintWriter
-
println
public void println(char c) Deprecated.- Overrides:
printlnin classPrintWriter
-
println
public void println(int x) Deprecated.- Overrides:
printlnin classPrintWriter
-
println
public void println(long x) Deprecated.- Overrides:
printlnin classPrintWriter
-
println
public void println(float x) Deprecated.- Overrides:
printlnin classPrintWriter
-
println
public void println(double x) Deprecated.- Overrides:
printlnin classPrintWriter
-
println
public void println(char[] s) Deprecated.- Overrides:
printlnin classPrintWriter
-
println
Deprecated.- Overrides:
printlnin classPrintWriter
-
println
Deprecated.- Overrides:
printlnin classPrintWriter
-
printf
Deprecated.- Overrides:
printfin classPrintWriter
-
printf
Deprecated.- Overrides:
printfin classPrintWriter
-
format
Deprecated.- Overrides:
formatin classPrintWriter
-
format
Deprecated.- Overrides:
formatin classPrintWriter
-