Class 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 Responses

    An instance of ResponseWriter is the PrintWriter subclass returned by Response.getWriter(). It differs from the standard PrintWriter in that:

    • 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.
       
      • Methods inherited from class java.io.PrintWriter

        append, append, append
      • Methods inherited from class java.io.Writer

        nullWriter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 class java.io.PrintWriter
      • flush

        public void flush()
        Deprecated.
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.PrintWriter
      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.PrintWriter
      • complete

        public void complete​(Callback callback)
        Deprecated.
      • write

        public void write​(int c)
        Deprecated.
        Overrides:
        write in class java.io.PrintWriter
      • write

        public void write​(char[] buf,
                          int off,
                          int len)
        Deprecated.
        Overrides:
        write in class java.io.PrintWriter
      • write

        public void write​(char[] buf)
        Deprecated.
        Overrides:
        write in class java.io.PrintWriter
      • write

        public void write​(java.lang.String s,
                          int off,
                          int len)
        Deprecated.
        Overrides:
        write in class java.io.PrintWriter
      • write

        public void write​(java.lang.String s)
        Deprecated.
        Overrides:
        write in class java.io.PrintWriter
      • print

        public void print​(boolean b)
        Deprecated.
        Overrides:
        print in class java.io.PrintWriter
      • print

        public void print​(char c)
        Deprecated.
        Overrides:
        print in class java.io.PrintWriter
      • print

        public void print​(int i)
        Deprecated.
        Overrides:
        print in class java.io.PrintWriter
      • print

        public void print​(long l)
        Deprecated.
        Overrides:
        print in class java.io.PrintWriter
      • print

        public void print​(float f)
        Deprecated.
        Overrides:
        print in class java.io.PrintWriter
      • print

        public void print​(double d)
        Deprecated.
        Overrides:
        print in class java.io.PrintWriter
      • print

        public void print​(char[] s)
        Deprecated.
        Overrides:
        print in class java.io.PrintWriter
      • print

        public void print​(java.lang.String s)
        Deprecated.
        Overrides:
        print in class java.io.PrintWriter
      • print

        public void print​(java.lang.Object obj)
        Deprecated.
        Overrides:
        print in class java.io.PrintWriter
      • println

        public void println()
        Deprecated.
        Overrides:
        println in class java.io.PrintWriter
      • println

        public void println​(boolean b)
        Deprecated.
        Overrides:
        println in class java.io.PrintWriter
      • println

        public void println​(char c)
        Deprecated.
        Overrides:
        println in class java.io.PrintWriter
      • println

        public void println​(int x)
        Deprecated.
        Overrides:
        println in class java.io.PrintWriter
      • println

        public void println​(long x)
        Deprecated.
        Overrides:
        println in class java.io.PrintWriter
      • println

        public void println​(float x)
        Deprecated.
        Overrides:
        println in class java.io.PrintWriter
      • println

        public void println​(double x)
        Deprecated.
        Overrides:
        println in class java.io.PrintWriter
      • println

        public void println​(char[] s)
        Deprecated.
        Overrides:
        println in class java.io.PrintWriter
      • println

        public void println​(java.lang.String s)
        Deprecated.
        Overrides:
        println in class java.io.PrintWriter
      • println

        public void println​(java.lang.Object x)
        Deprecated.
        Overrides:
        println in class java.io.PrintWriter
      • printf

        public java.io.PrintWriter printf​(java.lang.String format,
                                          java.lang.Object... args)
        Deprecated.
        Overrides:
        printf in class java.io.PrintWriter
      • printf

        public java.io.PrintWriter printf​(java.util.Locale l,
                                          java.lang.String format,
                                          java.lang.Object... args)
        Deprecated.
        Overrides:
        printf in class java.io.PrintWriter
      • format

        public java.io.PrintWriter format​(java.lang.String format,
                                          java.lang.Object... args)
        Deprecated.
        Overrides:
        format in class java.io.PrintWriter
      • format

        public java.io.PrintWriter format​(java.util.Locale locale,
                                          java.lang.String format,
                                          java.lang.Object... args)
        Deprecated.
        Overrides:
        format in class java.io.PrintWriter