public class HeadersParser extends Object
Class partially taken from the apache commons httpclient project commons-httpclient The code has been adapted for the specific use case of the nio multipart project.
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_STRING |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,List<String>> |
parseHeaders(InputStream headersSection,
String charset)
Parse the headers section into a
Map |
public static final String EMPTY_STRING
public static Map<String,List<String>> parseHeaders(InputStream headersSection, String charset)
Parse the headers section into a Map
headersSection - The header section.charset - The charsetMap having as keys the header names and as values a list of the header values.Copyright © 2017. All rights reserved.