Package net.fortuna.mstor.data
Class MessageAppender
- java.lang.Object
-
- net.fortuna.mstor.data.MessageAppender
-
public class MessageAppender extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringFROM__PREFIXThe prefix for all "From_" lines in an mbox file.
-
Constructor Summary
Constructors Constructor Description MessageAppender(FileChannel channel)MessageAppender(FileChannel channel, Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longappendMessage(byte[] message)Appends the specified message (represented by a byte array) to the specified channel.
-
-
-
Field Detail
-
FROM__PREFIX
public static final String FROM__PREFIX
The prefix for all "From_" lines in an mbox file.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessageAppender
public MessageAppender(FileChannel channel)
- Parameters:
channel-
-
MessageAppender
public MessageAppender(FileChannel channel, Charset charset)
- Parameters:
channel-charset-
-
-
Method Detail
-
appendMessage
public long appendMessage(byte[] message) throws IOExceptionAppends the specified message (represented by a byte array) to the specified channel.- Parameters:
message-- Returns:
- Throws:
IOException
-
-