|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.util.mime.MimeHelper
org.cip4.jdflib.util.mime.MimeReader
public class MimeReader
| Field Summary |
|---|
| Fields inherited from class org.cip4.jdflib.util.mime.MimeHelper |
|---|
markSize, theMultipart |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.cip4.jdflib.util.mime.MimeHelper |
|---|
getBodyPartHelper, getBodyParts, getCount, getCreatePartByCID, getMarkSize, getMultiPart, getPartByCID, getPartHelperByCID, setMarkSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 name| Method Detail |
|---|
public JDFDoc getJDFDoc(InputStream stream,
int index)
stream - the stream to search inindex - the index of the body part to search
public XMLDoc getXMLDoc(InputStream stream,
int index)
stream - the stream to search inindex - the index of the body part to search
public InputStream getURLInputStream(String urlString)
urlString -
public String getFileName(String url)
url -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||