public class MultipartParser extends Object
MultipartParser parses a byte stream carrying a
multipart message. Multipart message definition supported in server is not
same as outlined in RFC 822. It is more simplified version of the multipart
message defined for mail protocol. It will fair to say that
MultipartParser can process multipart message used by HTTP protocol.
Parser implementation is state less; therefore it is also thread-safe.
| Modifier and Type | Method and Description |
|---|---|
void |
parse(ByteSource byteSource,
MultipartParserContext context)
Parses mime bytes from given
ByteSource using the handler given. |
public void parse(ByteSource byteSource, MultipartParserContext context) throws MalformedMimeException, IOException
ByteSource using the handler given.
As the parser is state less, the parsing process state is maintained bybyteSource - byteSourcecontext - contextMalformedMimeException - MalformedMimeExceptionIOException - IOExceptionCopyright © 2019. All rights reserved.