public class MimeReader extends MimeHelper
markSize, theMultipart
Constructor and Description |
---|
MimeReader() |
MimeReader(InputStream mimeStream)
create a root multipart from an input stream
|
MimeReader(MimeWriter writer)
create a root multipart from a MimeWriter
|
MimeReader(javax.mail.Multipart mp)
create a reader from an existing mutipart
|
MimeReader(String url)
create a root multipart from an input stream
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName(String url) |
JDFDoc |
getJDFDoc(InputStream stream,
int index)
get the JDF Doc from a stream, also handle non mime streams gracefully
|
InputStream |
getURLInputStream(String urlString)
get the opened input stream for a given url string
|
XMLDoc |
getXMLDoc(InputStream stream,
int index)
get the JDF Doc from a stream, also handle non mime streams gracefully
|
getBodyPartHelper, getBodyParts, getCount, getCreatePartByCID, getMarkSize, getMultiPart, getPartByCID, getPartHelperByCID, setMarkSize
public MimeReader()
public MimeReader(javax.mail.Multipart mp)
mp
- public MimeReader(InputStream mimeStream)
mimeStream
- the input streampublic MimeReader(MimeWriter writer)
writer
- the input writer that will now be readpublic MimeReader(String url)
url
- the url or file namepublic JDFDoc getJDFDoc(InputStream stream, int index)
stream
- the stream to search inindex
- the index of the body part to searchpublic XMLDoc getXMLDoc(InputStream stream, int index)
stream
- the stream to search inindex
- the index of the body part to searchpublic InputStream getURLInputStream(String urlString)
urlString
- Copyright © 2018. All rights reserved.