Class MultiPartWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable

    @Deprecated(since="2021-05-27")
    public class MultiPartWriter
    extends java.io.FilterWriter
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    Handle a multipart MIME response.
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiPartWriter​(java.io.Writer out)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()
      Deprecated.
      End the current part.
      void endPart()
      Deprecated.
      end creation of the next Content.
      java.lang.String getBoundary()
      Deprecated.
       
      void startPart​(java.lang.String contentType)
      Deprecated.
      Start creation of the next Content.
      void startPart​(java.lang.String contentType, java.lang.String[] headers)
      Deprecated.
      Start creation of the next Content.
      • Methods inherited from class java.io.FilterWriter

        flush, write, write, write
      • Methods inherited from class java.io.Writer

        append, append, append, nullWriter, write, write
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MULTIPART_MIXED

        public static final java.lang.String MULTIPART_MIXED
        Deprecated.
        See Also:
        Constant Field Values
      • MULTIPART_X_MIXED_REPLACE

        public static final java.lang.String MULTIPART_X_MIXED_REPLACE
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MultiPartWriter

        public MultiPartWriter​(java.io.Writer out)
                        throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Deprecated.
        End the current part.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.FilterWriter
        Throws:
        java.io.IOException - IOException
      • getBoundary

        public java.lang.String getBoundary()
        Deprecated.
      • startPart

        public void startPart​(java.lang.String contentType)
                       throws java.io.IOException
        Deprecated.
        Start creation of the next Content.
        Parameters:
        contentType - the content type
        Throws:
        java.io.IOException - if unable to write the part
      • endPart

        public void endPart()
                     throws java.io.IOException
        Deprecated.
        end creation of the next Content.
        Throws:
        java.io.IOException - if unable to write the part
      • startPart

        public void startPart​(java.lang.String contentType,
                              java.lang.String[] headers)
                       throws java.io.IOException
        Deprecated.
        Start creation of the next Content.
        Parameters:
        contentType - the content type of the part
        headers - the part headers
        Throws:
        java.io.IOException - if unable to write the part