public class SplitJournalFileReader extends java.lang.Object implements JournalFileReader
Constructor and Description |
---|
SplitJournalFileReader(JournalFileReader roJournalReader,
JournalFileReader rwJournalReader,
java.util.Optional<java.lang.String> lastRoJournalEntry) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
readLine()
Read the line from the journal, using LIFO strategy (last in, first out).
|
public SplitJournalFileReader(JournalFileReader roJournalReader, JournalFileReader rwJournalReader, java.util.Optional<java.lang.String> lastRoJournalEntry)
public java.lang.String readLine() throws java.io.IOException
JournalFileReader
readLine
in interface JournalFileReader
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.