Class HttpRFC7578Multipart
java.lang.Object
org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat
org.apache.hc.client5.http.entity.mime.HttpRFC7578Multipart
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<MultipartPart>private static final HttpRFC7578Multipart.PercentCodecprivate static final intRadix used in encoding and decoding.Fields inherited from class org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat
boundary, charset, CR_LF, FIELD_SEP, TWO_HYPHENS -
Constructor Summary
ConstructorsConstructorDescriptionHttpRFC7578Multipart(Charset charset, String boundary, List<MultipartPart> parts) -
Method Summary
Modifier and TypeMethodDescription(package private) static intdigit16(byte b) Returns the numeric value of the characterbin radix 16.protected voidformatMultipartHeader(MultipartPart part, OutputStream out) Write the multipart header fields; depends on the style.getParts()(package private) static charhexDigit(int b) Returns the upper case hex digit of the lower 4 bits of the int.Methods inherited from class org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat
doWriteTo, encode, getTotalLength, isLineBreak, stripLineBreaks, writeBytes, writeBytes, writeBytes, writeField, writeField, writeTo
-
Field Details
-
PERCENT_CODEC
-
parts
-
RADIX
private static final int RADIXRadix used in encoding and decoding.- See Also:
-
-
Constructor Details
-
HttpRFC7578Multipart
-
-
Method Details
-
getParts
- Specified by:
getPartsin classAbstractMultipartFormat
-
formatMultipartHeader
Description copied from class:AbstractMultipartFormatWrite the multipart header fields; depends on the style.- Specified by:
formatMultipartHeaderin classAbstractMultipartFormat- Throws:
IOException
-
digit16
static int digit16(byte b) Returns the numeric value of the characterbin radix 16.- Parameters:
b- The byte to be converted.- Returns:
- The numeric value represented by the character in radix 16.
- Throws:
IllegalArgumentException- Thrown when the byte is not valid perCharacter.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.
-