Package org.bouncycastle.mime
Class Headers
java.lang.Object
org.bouncycastle.mime.Headers
-
Constructor Summary
ConstructorsConstructorDescriptionHeaders(InputStream source, String defaultContentTransferEncoding) Create specifying content type header value and default content transfer encoding. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoiddumpHeaders(OutputStream outputStream) Return the a Map of the ContentType attributes and their values.getNames()String[]booleanisEmpty()booleaniterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-