com.openexchange.mail.uuencode
Class UUEncodedMultiPart

java.lang.Object
  extended by com.openexchange.mail.uuencode.UUEncodedMultiPart
Direct Known Subclasses:
UUEncodedPart

public class UUEncodedMultiPart
extends java.lang.Object

UUEncodedMultiPart - Find possible uuencoded attachments in "normal" text (like Outlook does) and converts them to UUEncodedPart objects.

Author:
Stefan Preuss, Thorben Betten

Constructor Summary
UUEncodedMultiPart()
          Initializes a new UUEncodedMultiPart
UUEncodedMultiPart(java.lang.String content)
          Initializes a new UUEncodedMultiPart
 
Method Summary
 UUEncodedPart getBodyPart(int index)
          Get the specified part.
 java.lang.String getCleanText()
          Return the "cleaned" text, without the content of the uuencoded attachments
 int getCount()
          Return the number of enclosed parts.
 boolean isUUEncoded()
          Checks if content fed into this UUEncodedMultiPart instance is uuencoded.
 void removeBodyPart(int index)
          Remove the part at specified location (starting from 0).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUEncodedMultiPart

public UUEncodedMultiPart()
Initializes a new UUEncodedMultiPart


UUEncodedMultiPart

public UUEncodedMultiPart(java.lang.String content)
Initializes a new UUEncodedMultiPart

Parameters:
content - The text content which is possibly uuencoded
Method Detail

isUUEncoded

public boolean isUUEncoded()
Checks if content fed into this UUEncodedMultiPart instance is uuencoded.

Returns:
true if content is uuencoded, false otherwise

getCleanText

public java.lang.String getCleanText()
Return the "cleaned" text, without the content of the uuencoded attachments

Returns:
The "cleaned" text

getCount

public int getCount()
Return the number of enclosed parts.

Returns:
number of parts

getBodyPart

public UUEncodedPart getBodyPart(int index)
Get the specified part. Parts are numbered starting at 0.

Parameters:
index - The index of the desired part
Returns:
The part

removeBodyPart

public void removeBodyPart(int index)
Remove the part at specified location (starting from 0). Shifts all the parts after the removed part down one.

Parameters:
index - The index of the part to remove