Package org.bouncycastle.mime
Class Headers
java.lang.Object
org.bouncycastle.mime.Headers
-
Constructor Summary
ConstructorDescriptionHeaders
(InputStream source, String defaultContentTransferEncoding) Create specifying content type header value and default content transfer encoding. -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
dumpHeaders
(OutputStream outputStream) Return the a Map of the ContentType attributes and their values.getNames()
String[]
boolean
isEmpty()
boolean
iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Headers
Create specifying content type header value and default content transfer encoding.- Parameters:
contentType
- The content type valuedefaultContentTransferEncoding
- default content transfer encoding.
-
Headers
- Throws:
IOException
-
Headers
-
-
Method Details
-
getContentTypeAttributes
Return the a Map of the ContentType attributes and their values.- Returns:
- a Map of ContentType parameters - empty if none present.
-
isMultipart
public boolean isMultipart() -
getBoundary
-
getContentType
-
getContentTransferEncoding
-
getNames
-
getValues
-
isEmpty
public boolean isEmpty() -
containsKey
-
iterator
-
dumpHeaders
- Throws:
IOException
-