Class HttpRFC7578Multipart

    • Constructor Detail

      • HttpRFC7578Multipart

        public HttpRFC7578Multipart​(java.nio.charset.Charset charset,
                                    java.lang.String boundary,
                                    java.util.List<MultipartPart> parts,
                                    java.lang.String preamble,
                                    java.lang.String epilogue)
        Constructs a new instance of HttpRFC7578Multipart with the given charset, boundary, parts, preamble, and epilogue.
        Parameters:
        charset - the charset to use.
        boundary - the boundary string to use.
        parts - the list of parts to include in the multipart message.
        preamble - the optional preamble string to include before the first part. May be null.
        epilogue - the optional epilogue string to include after the last part. May be null.
      • HttpRFC7578Multipart

        public HttpRFC7578Multipart​(java.nio.charset.Charset charset,
                                    java.lang.String boundary,
                                    java.util.List<MultipartPart> parts)
        Constructs a new instance of HttpRFC7578Multipart with the given charset, boundary, and parts.
        Parameters:
        charset - the charset to use.
        boundary - the boundary string to use.
        parts - the list of parts to include in the multipart message.
    • Method Detail

      • digit16

        static int digit16​(byte b)
        Returns the numeric value of the character b in radix 16.
        Parameters:
        b - The byte to be converted.
        Returns:
        The numeric value represented by the character in radix 16.
        Throws:
        java.lang.IllegalArgumentException - Thrown when the byte is not valid per Character.digit(char,int)
      • hexDigit

        static char hexDigit​(int b)
        Returns the upper case hex digit of the lower 4 bits of the int.
        Parameters:
        b - the input int
        Returns:
        the upper case hex digit of the lower 4 bits of the int.