net.fortuna.mstor.data
Class MessageAppender

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

public class MessageAppender
extends java.lang.Object

Author:
Ben
 $Id$

 Created on 03/03/2008
 

Field Summary
static java.lang.String FROM__PREFIX
          The prefix for all "From_" lines in an mbox file.
 
Constructor Summary
MessageAppender(java.nio.channels.FileChannel channel)
           
MessageAppender(java.nio.channels.FileChannel channel, java.nio.charset.Charset charset)
           
 
Method Summary
 long appendMessage(byte[] message)
          Appends the specified message (represented by a byte array) to the specified channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FROM__PREFIX

public static final java.lang.String FROM__PREFIX
The prefix for all "From_" lines in an mbox file.

See Also:
Constant Field Values
Constructor Detail

MessageAppender

public MessageAppender(java.nio.channels.FileChannel channel)
Parameters:
channel -

MessageAppender

public MessageAppender(java.nio.channels.FileChannel channel,
                       java.nio.charset.Charset charset)
Parameters:
channel -
charset -
Method Detail

appendMessage

public long appendMessage(byte[] message)
                   throws java.io.IOException
Appends the specified message (represented by a byte array) to the specified channel.

Parameters:
message -
Returns:
Throws:
java.io.IOException


Copyright © 2004-2011 Micronode. All Rights Reserved.