public interface JournalFormatter
Modifier and Type | Interface and Description |
---|---|
static class |
JournalFormatter.Factory
Factory for
JournalFormatter . |
Modifier and Type | Method and Description |
---|---|
JournalInputStream |
deserialize(InputStream inputStream)
Returns a
JournalInputStream from the given input stream. |
void |
serialize(Journal.JournalEntry entry,
OutputStream outputStream)
Serializes the given entry and writes it to the given output stream.
|
void serialize(Journal.JournalEntry entry, OutputStream outputStream) throws IOException
entry
- The journal entry to serializeoutputStream
- the output stream to serialize the entry toIOException
JournalInputStream deserialize(InputStream inputStream) throws IOException
JournalInputStream
from the given input stream. The returned input stream
produces a stream of Journal.JournalEntry
objects.inputStream
- The input stream to deserializeJournalInputStream
for reading all the journal entries in the given input
stream.IOException
Copyright © 2023. All Rights Reserved.