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(since="2021-05-27") public class ResponseWriter extends PrintWriter
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Specialized PrintWriter for servlet ResponsesAn instance of ResponseWriter is the
PrintWritersubclass returned byResponse.getWriter(). It differs from the standardPrintWriterin 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
Constructors Constructor Description ResponseWriter(HttpWriter httpWriter, Locale locale, String encoding)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancheckError()Deprecated.voidclose()Deprecated.voidcomplete(Callback callback)Deprecated.voidflush()Deprecated.PrintWriterformat(String format, Object... args)Deprecated.PrintWriterformat(Locale locale, String format, Object... args)Deprecated.booleanisFor(Locale locale, String encoding)Deprecated.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.voidprint(Object obj)Deprecated.voidprint(String s)Deprecated.PrintWriterprintf(String format, Object... args)Deprecated.PrintWriterprintf(Locale l, String format, Object... args)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.voidprintln(Object x)Deprecated.voidprintln(String s)Deprecated.voidwrite(char[] buf)Deprecated.voidwrite(char[] buf, int off, int len)Deprecated.voidwrite(int c)Deprecated.voidwrite(String s)Deprecated.voidwrite(String s, int off, int len)Deprecated.-
Methods inherited from class java.io.PrintWriter
append, append, append
-
Methods inherited from class java.io.Writer
nullWriter
-
-
-
-
Constructor Detail
-
ResponseWriter
public ResponseWriter(HttpWriter httpWriter, Locale locale, String encoding)
Deprecated.
-
-
Method Detail
-
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
public void complete(Callback callback)
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
public void write(String s, int off, int len)
Deprecated.- Overrides:
writein classPrintWriter
-
write
public void write(String s)
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
public void print(String s)
Deprecated.- Overrides:
printin classPrintWriter
-
print
public void print(Object obj)
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
public void println(String s)
Deprecated.- Overrides:
printlnin classPrintWriter
-
println
public void println(Object x)
Deprecated.- Overrides:
printlnin classPrintWriter
-
printf
public PrintWriter printf(String format, Object... args)
Deprecated.- Overrides:
printfin classPrintWriter
-
printf
public PrintWriter printf(Locale l, String format, Object... args)
Deprecated.- Overrides:
printfin classPrintWriter
-
format
public PrintWriter format(String format, Object... args)
Deprecated.- Overrides:
formatin classPrintWriter
-
format
public PrintWriter format(Locale locale, String format, Object... args)
Deprecated.- Overrides:
formatin classPrintWriter
-
-