Package com.logviewer.data2
Interface LogView
- All Known Implementing Classes:
BrokenLog,ExceptionBrokenLogView,Log,NotConnectedLogView,RemoteLog
public interface LogView
-
Method Summary
Modifier and TypeMethodDescriptionaddChangeListener(Consumer<FileAttributes> changeListener) createRecordSearcher(Position start, boolean backward, RecordPredicate recordPredicate, String hash, int recordCount, SearchPattern searchPattern, Consumer<SearchResult> listener) getId()getPath()booleanloadContent(long offset, int length) Reads a piece of the log.loadRecords(RecordPredicate filter, int recordCount, Position start, boolean backward, String hash, long sizeLimit, LogDataListener loadListener) readRecordAt(long offset) tryRead()
-
Method Details
-
getId
String getId() -
getPath
LogPath getPath() -
getHostname
String getHostname() -
getFormat
LogFormat getFormat() -
isConnected
boolean isConnected() -
loadRecords
LogProcess loadRecords(RecordPredicate filter, int recordCount, @Nullable Position start, boolean backward, @Nullable String hash, long sizeLimit, @NonNull LogDataListener loadListener) -
createRecordSearcher
LogProcess createRecordSearcher(@NonNull Position start, boolean backward, RecordPredicate recordPredicate, @Nullable String hash, int recordCount, @NonNull SearchPattern searchPattern, @NonNull Consumer<SearchResult> listener) -
addChangeListener
-
tryRead
CompletableFuture<Throwable> tryRead() -
readRecordAt
-
loadContent
Reads a piece of the log.- Parameters:
offset- The offset in the log.length- The number of bytes to read. The actual read piece may be less than 'length'.- Returns:
- A pair of the read text and the actual size of the text in bytes.
-