Package com.logviewer.data2
Interface Snapshot
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
Log.LogSnapshot
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getError()getHash()longgetLog()longgetSize()booleanisValidHash(String hash) booleanprocessFromTime(long time, Predicate<LogRecord> consumer) booleanprocessFromTimeBack(long time, Predicate<LogRecord> consumer) booleanprocessRecords(long position, boolean fromNextLine, Predicate<LogRecord> consumer) default booleanprocessRecords(long position, Predicate<LogRecord> consumer) booleanprocessRecordsBack(long position, boolean fromNextLine, Predicate<LogRecord> consumer)
-
Method Details
-
getSize
long getSize() -
getLastModification
long getLastModification() -
processRecords
- Throws:
IOException
-
processRecordsBack
boolean processRecordsBack(long position, boolean fromNextLine, Predicate<LogRecord> consumer) throws IOException - Throws:
IOException
-
processRecords
boolean processRecords(long position, boolean fromNextLine, Predicate<LogRecord> consumer) throws IOException - Throws:
IOException
-
processFromTimeBack
- Throws:
IOException
-
processFromTime
- Throws:
IOException
-
getError
-
getLog
Log getLog() -
isValidHash
-
getHash
String getHash() -
close
void close()- Specified by:
closein interfaceAutoCloseable
-