- 
- All Superinterfaces:
- IOutputChannel
 - All Known Implementing Classes:
- Output
 
 public interface IOutputManager extends IOutputChannel The output manager is responsible for managing a collection of registered output channels. It provides methods to register and remove channels as well as control buffering. When text is written to the manager then it is sent to all registered output channels. This interface is an extension of IOutputChannel so as to enforce consistency between the declarations for printing text to an output channel. The manager is in effect acting as a single proxy channel for all of it's individually registered channels.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChannel(IOutputChannel channel)Adds a channel to the list of registered channels.voidclearBuffer()Clears the current buffer contents.StringgetBuffer()Gets the current buffer contents.PrintStreamgetPrintStream()Creates a print stream for this output objectvoidremoveAllChannels()Remove all registered channelsvoidremoveChannel(IOutputChannel channel)Removes a specific channel for a particular type.voidremoveChannel(Class<?> type)Removes all registered channels for a particular type.voidsetBuffering(boolean enabled)Enabling buffering will cause the output from commands to be written to an internal buffer rather than immediately to the underlying output channels.- 
Methods declared in interface com.ibm.jvm.dtfjview.spi.IOutputChannelclose, flush, print, println, printPrompt
 
- 
 
- 
- 
- 
Method Detail- 
setBufferingvoid setBuffering(boolean enabled) Enabling buffering will cause the output from commands to be written to an internal buffer rather than immediately to the underlying output channels. This is typically used by clients to inspect or intercept the results from a command before carrying out further processing. By default buffering is not enabled.- Parameters:
- enabled- true turns on buffering
 
 - 
clearBuffervoid clearBuffer() Clears the current buffer contents.
 - 
getBufferString getBuffer() Gets the current buffer contents.- Returns:
- buffer contents
 
 - 
addChannelvoid addChannel(IOutputChannel channel) Adds a channel to the list of registered channels.- Parameters:
- channel- channel to add.
 
 - 
removeChannelvoid removeChannel(Class<?> type) Removes all registered channels for a particular type.- Parameters:
- type-
 
 - 
removeChannelvoid removeChannel(IOutputChannel channel) Removes a specific channel for a particular type. For this to be successful the underlying implementation must override hashcode and equals.- Parameters:
- type-
 
 - 
removeAllChannelsvoid removeAllChannels() Remove all registered channels
 - 
getPrintStreamPrintStream getPrintStream() Creates a print stream for this output object- Returns:
 
 
- 
 
-