Package org.eclipse.jetty.server
Class ResponseWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.PrintWriter
-
- org.eclipse.jetty.server.ResponseWriter
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.Appendable
,java.lang.AutoCloseable
@Deprecated(since="2021-05-27") public class ResponseWriter extends java.io.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
PrintWriter
subclass returned byResponse.getWriter()
. It differs from the standardPrintWriter
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 aRuntimeIOException
is thrown to stop needless iterations. - The writer may be reopen to allow for recycling
-
-
Constructor Summary
Constructors Constructor Description ResponseWriter(HttpWriter httpWriter, java.util.Locale locale, java.lang.String encoding)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
checkError()
Deprecated.void
close()
Deprecated.void
complete(Callback callback)
Deprecated.void
flush()
Deprecated.java.io.PrintWriter
format(java.lang.String format, java.lang.Object... args)
Deprecated.java.io.PrintWriter
format(java.util.Locale locale, java.lang.String format, java.lang.Object... args)
Deprecated.boolean
isFor(java.util.Locale locale, java.lang.String encoding)
Deprecated.void
print(boolean b)
Deprecated.void
print(char c)
Deprecated.void
print(char[] s)
Deprecated.void
print(double d)
Deprecated.void
print(float f)
Deprecated.void
print(int i)
Deprecated.void
print(long l)
Deprecated.void
print(java.lang.Object obj)
Deprecated.void
print(java.lang.String s)
Deprecated.java.io.PrintWriter
printf(java.lang.String format, java.lang.Object... args)
Deprecated.java.io.PrintWriter
printf(java.util.Locale l, java.lang.String format, java.lang.Object... args)
Deprecated.void
println()
Deprecated.void
println(boolean b)
Deprecated.void
println(char c)
Deprecated.void
println(char[] s)
Deprecated.void
println(double x)
Deprecated.void
println(float x)
Deprecated.void
println(int x)
Deprecated.void
println(long x)
Deprecated.void
println(java.lang.Object x)
Deprecated.void
println(java.lang.String s)
Deprecated.void
write(char[] buf)
Deprecated.void
write(char[] buf, int off, int len)
Deprecated.void
write(int c)
Deprecated.void
write(java.lang.String s)
Deprecated.void
write(java.lang.String s, int off, int len)
Deprecated.
-
-
-
Constructor Detail
-
ResponseWriter
public ResponseWriter(HttpWriter httpWriter, java.util.Locale locale, java.lang.String encoding)
Deprecated.
-
-
Method Detail
-
isFor
public boolean isFor(java.util.Locale locale, java.lang.String encoding)
Deprecated.
-
checkError
public boolean checkError()
Deprecated.- Overrides:
checkError
in classjava.io.PrintWriter
-
flush
public void flush()
Deprecated.- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.PrintWriter
-
close
public void close()
Deprecated.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.PrintWriter
-
complete
public void complete(Callback callback)
Deprecated.
-
write
public void write(int c)
Deprecated.- Overrides:
write
in classjava.io.PrintWriter
-
write
public void write(char[] buf, int off, int len)
Deprecated.- Overrides:
write
in classjava.io.PrintWriter
-
write
public void write(char[] buf)
Deprecated.- Overrides:
write
in classjava.io.PrintWriter
-
write
public void write(java.lang.String s, int off, int len)
Deprecated.- Overrides:
write
in classjava.io.PrintWriter
-
write
public void write(java.lang.String s)
Deprecated.- Overrides:
write
in classjava.io.PrintWriter
-
print
public void print(boolean b)
Deprecated.- Overrides:
print
in classjava.io.PrintWriter
-
print
public void print(char c)
Deprecated.- Overrides:
print
in classjava.io.PrintWriter
-
print
public void print(int i)
Deprecated.- Overrides:
print
in classjava.io.PrintWriter
-
print
public void print(long l)
Deprecated.- Overrides:
print
in classjava.io.PrintWriter
-
print
public void print(float f)
Deprecated.- Overrides:
print
in classjava.io.PrintWriter
-
print
public void print(double d)
Deprecated.- Overrides:
print
in classjava.io.PrintWriter
-
print
public void print(char[] s)
Deprecated.- Overrides:
print
in classjava.io.PrintWriter
-
print
public void print(java.lang.String s)
Deprecated.- Overrides:
print
in classjava.io.PrintWriter
-
print
public void print(java.lang.Object obj)
Deprecated.- Overrides:
print
in classjava.io.PrintWriter
-
println
public void println()
Deprecated.- Overrides:
println
in classjava.io.PrintWriter
-
println
public void println(boolean b)
Deprecated.- Overrides:
println
in classjava.io.PrintWriter
-
println
public void println(char c)
Deprecated.- Overrides:
println
in classjava.io.PrintWriter
-
println
public void println(int x)
Deprecated.- Overrides:
println
in classjava.io.PrintWriter
-
println
public void println(long x)
Deprecated.- Overrides:
println
in classjava.io.PrintWriter
-
println
public void println(float x)
Deprecated.- Overrides:
println
in classjava.io.PrintWriter
-
println
public void println(double x)
Deprecated.- Overrides:
println
in classjava.io.PrintWriter
-
println
public void println(char[] s)
Deprecated.- Overrides:
println
in classjava.io.PrintWriter
-
println
public void println(java.lang.String s)
Deprecated.- Overrides:
println
in classjava.io.PrintWriter
-
println
public void println(java.lang.Object x)
Deprecated.- Overrides:
println
in classjava.io.PrintWriter
-
printf
public java.io.PrintWriter printf(java.lang.String format, java.lang.Object... args)
Deprecated.- Overrides:
printf
in classjava.io.PrintWriter
-
printf
public java.io.PrintWriter printf(java.util.Locale l, java.lang.String format, java.lang.Object... args)
Deprecated.- Overrides:
printf
in classjava.io.PrintWriter
-
format
public java.io.PrintWriter format(java.lang.String format, java.lang.Object... args)
Deprecated.- Overrides:
format
in classjava.io.PrintWriter
-
format
public java.io.PrintWriter format(java.util.Locale locale, java.lang.String format, java.lang.Object... args)
Deprecated.- Overrides:
format
in classjava.io.PrintWriter
-
-