Package app.tozzi.uudecoder
Class UUDecoder
- java.lang.Object
-
- app.tozzi.uudecoder.UUDecoder
-
public class UUDecoder extends Object
- Author:
- biagio.tozzi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUUDecoder.UUDecodedAttachment
-
Constructor Summary
Constructors Constructor Description UUDecoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontainsUUEncodedAttachments(String content)Check if the content has uuencoded attachmentsstatic UUDecodedBeandecode(String content)Extracts 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
-
-
-
Method Detail
-
decode
public static UUDecodedBean decode(String content) throws UUDecoderException
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
public static String getNextUUEncodedString(String content) throws UUDecoderException
Extracts next uuencoded string from EML text content- Parameters:
content- EML text content (text/plain)- Returns:
- next uuencoded string
- Throws:
UUDecoderException
-
getNextBeginIndex
public static int getNextBeginIndex(String content) throws UUDecoderException
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
public static boolean containsUUEncodedAttachments(String content) throws UUDecoderException
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
-
-