Package app.tozzi.uudecoder
Class UUDecoder
java.lang.Object
app.tozzi.uudecoder.UUDecoder
- Author:
- biagio.tozzi
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsUUEncodedAttachments(String content) Check if the content has uuencoded attachmentsstatic UUDecodedBeanExtracts uudecoded content and attachments from EML text uuencoded contentstatic intgetNextBeginIndex(String content) Finds the first index containing the identifier beginstatic StringgetNextUUEncodedString(String content) Extracts next uuencoded string from EML text contentstatic List<UUDecoder.UUDecodedAttachment> getUUDecodedAttachments(String content) Extracts uudecoded attachments from EML text uuencoded content
-
Constructor Details
-
UUDecoder
public UUDecoder()
-
-
Method Details
-
decode
Extracts uudecoded content and attachments from EML text uuencoded content- Parameters:
content- EML text content (text/plain)- Returns:
UUDecodedBean- Throws:
UUDecoderException
-
getUUDecodedAttachments
public static List<UUDecoder.UUDecodedAttachment> getUUDecodedAttachments(String content) throws UUDecoderException Extracts uudecoded attachments from EML text uuencoded content- Parameters:
content- EML text content (text/plain)- Returns:
- List of
UUDecoder.UUDecodedAttachment - Throws:
UUDecoderException
-
getNextUUEncodedString
Extracts next uuencoded string from EML text content- Parameters:
content- EML text content (text/plain)- Returns:
- next uuencoded string
- Throws:
UUDecoderException
-
getNextBeginIndex
Finds the first index containing the identifier begin- Parameters:
content- EML text content (text/plain)- Returns:
- first index containing the identifier begin
- Throws:
UUDecoderException
-
containsUUEncodedAttachments
Check if the content has uuencoded attachments- Parameters:
content- EML text content (text/plain)- Returns:
- true if the content has uuencoded attachments, false otherwise
- Throws:
UUDecoderException
-