org.mule.util.journal
Interface JournalEntrySerializer<T,K extends JournalEntry<T>>


public interface JournalEntrySerializer<T,K extends JournalEntry<T>>

Allows to serialize / deserialize log entries from an OutputStream


Method Summary
 K deserialize(DataInputStream inputStream)
           
 void serialize(K journalEntry, DataOutputStream dataOutputStream)
           
 

Method Detail

deserialize

K deserialize(DataInputStream inputStream)
                                      throws IOException
Parameters:
inputStream - input stream with the serialized log entry.
Returns:
a JournalEntry instance from the ouput stream
Throws:
IOException

serialize

void serialize(K journalEntry,
               DataOutputStream dataOutputStream)
Parameters:
journalEntry - journal entry to serialize
dataOutputStream - destination for the serialization


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.