Package org.bouncycastle.mime
Class Headers
- java.lang.Object
-
- org.bouncycastle.mime.Headers
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(String s)
void
dumpHeaders(OutputStream outputStream)
String
getBoundary()
String
getContentTransferEncoding()
String
getContentType()
Map<String,String>
getContentTypeAttributes()
Return the a Map of the ContentType attributes and their values.Iterator<String>
getNames()
String[]
getValues(String header)
boolean
isEmpty()
boolean
isMultipart()
Iterator<String>
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 Detail
-
Headers
public Headers(InputStream source, String defaultContentTransferEncoding) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getContentTypeAttributes
public Map<String,String> 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
public String getBoundary()
-
getContentType
public String getContentType()
-
getContentTransferEncoding
public String getContentTransferEncoding()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(String s)
-
dumpHeaders
public void dumpHeaders(OutputStream outputStream) throws IOException
- Throws:
IOException
-
-