public interface MimeDescriptor extends Headers
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
contentTypeParameters()
Gets MIME body parameters parsed from
Content-Type . |
MimeDescriptor |
embeddedMessage()
Gets embedded message.
|
long |
getBodyOctets()
The number of octets contained in the body of this part.
|
String |
getContentDescription()
Gets MIME
Content-Description header value. |
String |
getContentID()
Gets the MIME
Content-ID header value. |
String |
getContentLocation()
Gets MIME
Content-Location header value. |
String |
getContentMD5()
Gets MIME
Content-MD5 header value. |
String |
getDisposition()
Gets MIME
Content-Disposition . |
Map<String,String> |
getDispositionParams()
Gets MIME
Content-Disposition parameters. |
List<String> |
getLanguages()
Gets the languages, From the MIME
Content-Language header
value. |
long |
getLines()
Gets the number of lines of text in a part of type
TEXT when
transfer encoded. |
String |
getMimeSubType()
Gets the MIME content subtype.
|
String |
getMimeType()
Gets the top level MIME content media type.
|
String |
getTransferContentEncoding()
Gets the MIME content transfer encoding.
|
Iterator<MimeDescriptor> |
parts()
Gets parts.
|
getInputStream, size
String getMimeType()
String getMimeSubType()
String getContentID()
Content-ID
header value.Content-ID
, possibly nullString getContentDescription()
Content-Description
header value.Content-Description
, possibly nullString getContentLocation()
Content-Location
header value.Content-Location
, possibly nullString getContentMD5()
Content-MD5
header value.Content-MD5
, possibly nullString getTransferContentEncoding()
Content-Transfer-Encoding
, possibly nullList<String> getLanguages()
Content-Language
header
value.List
of String
namesString getDisposition()
Content-Disposition
.Content-Disposition
, or null if no disposition
header existsMap<String,String> getDispositionParams()
Content-Disposition
parameters.Content-Disposition
values indexed by nameslong getLines()
TEXT
when
transfer encoded.CRLF
count when a TEXT
type, otherwise
-1long getBodyOctets()
Iterator<MimeDescriptor> parts()
MimeDescriptor
Iterator
when a
composite top level MIME media type, null otherwiseMimeDescriptor embeddedMessage()
MimeDescriptor
when top level MIME type is
message
, null otherwiseCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.