Package org.wildstang.framework.io
Class OutputManager
java.lang.Object
org.wildstang.framework.io.OutputManager
Contains and updates all Outputs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an Output to the manager.booleanDetermines if the manager has an Output with a given name.Produces a HashMap of all managed Outputs.Returns a named Output from the manager.Returns an Output with a matching name from the manager.voidinit()Initializes logger.voidRemoves all Outputs from the manager.voidremoveOutput(Output p_output) Removes an Output to the manager.intsize()Returns the total size of all managed outputs.voidupdate()Updates all managed outputs.
-
Constructor Details
-
OutputManager
public OutputManager()
-
-
Method Details
-
init
public void init()Initializes logger. -
update
public void update()Updates all managed outputs. -
addOutput
Adds an Output to the manager.- Parameters:
p_output- Output object to add.
-
removeOutput
Removes an Output to the manager.- Parameters:
p_output- Output object to remove.
-
getOutput
Returns an Output with a matching name from the manager.- Parameters:
p_output- Output to fetch from the manager.- Returns:
- Output belonging to the manager.
-
getOutput
Returns a named Output from the manager.- Parameters:
p_name- Name of the Output to fetch.- Returns:
- Output belonging to the manager.
-
contains
Determines if the manager has an Output with a given name.- Parameters:
p_name- Name of an Output to search for.- Returns:
- True if an Output exists with p_name.
-
size
public int size()Returns the total size of all managed outputs.- Returns:
- Size of all managed outputs.
-
removeAll
public void removeAll()Removes all Outputs from the manager. -
getHashMap
Produces a HashMap of all managed Outputs.- Returns:
- HashMap of all managed Outputs mapped to their names.
-