Package net.fortuna.mstor.data
Class MboxEncoder
- java.lang.Object
-
- net.fortuna.mstor.data.MboxEncoder
-
public final class MboxEncoder extends Object
Implements encoding for writing a message to an mbox file. Encoding involves automatically escaping any "From_" patterns in the body of the message.
-
-
Method Detail
-
encode
public static byte[] encode(byte[] bytes) throws IOException
- Parameters:
bytes
- raw data to encode- Returns:
- an mbox-encoded data array
- Throws:
IOException
- where an error occurs generating encoded data
-
-