Package org.apache.juneau.console.views
Class FileTerminalViewSource.Builder
java.lang.Object
org.apache.juneau.console.views.FileTerminalViewSource.Builder
- Enclosing class:
- FileTerminalViewSource
Builder for
FileTerminalViewSource.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the source.index(FileLineIndex value) Sets the index (defaultFileLineIndex.of(Path)), so one index can be shared across requests.terminal(BooleanSupplier value) Sets the supplier that reports whether the producer will write no more, called once per request before the file is read.
-
Method Details
-
terminal
Sets the supplier that reports whether the producer will write no more, called once per request before the file is read.- Parameters:
value- The supplier.- Returns:
- This object.
-
index
Sets the index (defaultFileLineIndex.of(Path)), so one index can be shared across requests.- Parameters:
value- An index over the same file.- Returns:
- This object.
-
build
Builds the source.- Returns:
- A new source.
-