public class MimeTree extends java.lang.Object implements java.io.Serializable, java.lang.Iterable<MimePart>
Constructor and Description |
---|
MimeTree(MimePart root)
Constructs the MimeTree.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the MimeTree.
|
int |
count() |
MimePart |
get(int number) |
java.util.List<MimePart> |
getAllLeafs() |
MimePart |
getFirstLeafWithContentType(MimePart root,
java.lang.String contentType)
Gets the first Leaf MimePart with the specified ContentType.
|
MimePart |
getFirstTextPart(java.lang.String preferedSubtype)
Gets the first MimePart that is of content type Text.
|
MimePart |
getFromAddress(java.lang.Integer[] address)
Gets the MimePart with the specified address.
|
java.util.List<MimePart> |
getLeafs(MimePart root)
Get all Leafs.
|
java.util.List<MimePart> |
getLeafsWithContentType(MimePart root,
java.lang.String contentType)
Collects all leaf MIME parts with the specified ContentType.
|
MimePart |
getRootMimeNode()
Returns the rootMimeNode.
|
int |
getUid() |
java.util.Iterator<MimePart> |
iterator() |
void |
setRootMimeNode(MimePart rootMimeNode)
Sets the rootMimeNode.
|
void |
setUid(int uid) |
public MimeTree(MimePart root)
root
- public MimePart get(int number)
number
- public int count()
public void clear()
public java.util.List<MimePart> getAllLeafs()
public MimePart getFromAddress(java.lang.Integer[] address)
address
- public MimePart getFirstTextPart(java.lang.String preferedSubtype)
preferedSubtype
- a preferred Subtype or null
public MimePart getFirstLeafWithContentType(MimePart root, java.lang.String contentType)
root
- contentType
- public java.util.List<MimePart> getLeafsWithContentType(MimePart root, java.lang.String contentType)
root
- contentType
- public java.util.List<MimePart> getLeafs(MimePart root)
root
- public MimePart getRootMimeNode()
public void setRootMimeNode(MimePart rootMimeNode)
rootMimeNode
- The rootMimeNode to setpublic java.util.Iterator<MimePart> iterator()
iterator
in interface java.lang.Iterable<MimePart>
public int getUid()
public void setUid(int uid)
Copyright © 2021. All Rights Reserved.