net.fortuna.mstor.data
Class MboxEncoder

java.lang.Object
  extended by net.fortuna.mstor.data.MboxEncoder

public final class MboxEncoder
extends java.lang.Object

Implements encoding for writing a message to an mbox file. Encoding involves automatically escaping any "From_" patterns in the body of the message.

Author:
Ben Fortuna
 $Id$

 Created on 10/04/2005
 

Method Summary
static byte[] encode(byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static byte[] encode(byte[] bytes)
                     throws java.io.IOException
Parameters:
bytes - raw data to encode
Returns:
an mbox-encoded data array
Throws:
java.io.IOException - where an error occurs generating encoded data


Copyright © 2004-2011 Micronode. All Rights Reserved.