Interface StatusLine
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
SplitConsole.DefaultStatusLine
An interface to a status line that can be used by
ResourceProviders
to indicate progress during the execution of
ResourceProviderSpi.provide(ResourceRequest).-
Field Summary
Fields -
Method Summary
-
Field Details
-
NOOP_STATUS_LINE
An implementation that does nothing.
-
-
Method Details
-
update
-
writer
Returns a writer to the status line. This writer can be used to append text to the status line. Closing the writer will not close the status line.
If a prefix is given, it will be printed at the beginning of the status line.
- Parameters:
prefix- the prefix- Returns:
- the prints the writer
-
close
void close()Deallocate the line for outputs from the current thread.- Specified by:
closein interfaceAutoCloseable
-