public static class BlockingIOAdapter.Part extends Object implements BlockingIOAdapter.ParserToken
A PartItem representing an attachment part.
It gives access to the part headers and the body InputStream
BlockingIOAdapter.ParserToken.Type| Modifier and Type | Method and Description |
|---|---|
Map<String,List<String>> |
getHeaders()
Returns the part headers.
|
InputStream |
getPartBody()
Returns the
InputStream from where the part body can be read. |
BlockingIOAdapter.ParserToken.Type |
getType()
Returns the type of the part
|
public BlockingIOAdapter.ParserToken.Type getType()
Returns the type of the part
getType in interface BlockingIOAdapter.ParserTokenpublic Map<String,List<String>> getHeaders()
Returns the part headers.
public InputStream getPartBody()
Returns the InputStream from where the part body can be read.
InputStream from where the part body can be read.Copyright © 2017. All rights reserved.