Package adams.gui.tools
Class ConsoleOutputAnalyzerPanel.ConsoleOutput
- java.lang.Object
-
- adams.gui.tools.ConsoleOutputAnalyzerPanel.ConsoleOutput
-
- All Implemented Interfaces:
SpreadSheetSupporter,Serializable
- Enclosing class:
- ConsoleOutputAnalyzerPanel
public static class ConsoleOutputAnalyzerPanel.ConsoleOutput extends Object implements Serializable, SpreadSheetSupporter
Class for encapsulating a complete console output.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConsoleOutput(File file, String encoding)Loads the console output from the given file.ConsoleOutput(String content)Uses the content, provided as single string.ConsoleOutput(ArrayList<ConsoleOutputAnalyzerPanel.ConsoleOutputEntry> content)Initializes the object with the given content.ConsoleOutput(List<String> content)Initializes the object with the given content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsoleOutputAnalyzerPanel.ConsoleOutputapplyFilter(ConsoleOutputAnalyzerPanel.ConsoleEntryFilter filter)Filters the data.List<String>getOrigins()Returns all available origins in the data (sorted).List<String>getTypes()Returns all available types in the data (sorted).protected voidparse(List<String> content)Parses the content.SpreadSheettoSpreadSheet()Returns the content as spreadsheet.StringtoString()Returns the managed content as string.
-
-
-
Constructor Detail
-
ConsoleOutput
public ConsoleOutput(File file, String encoding)
Loads the console output from the given file.- Parameters:
file- the file to load the content fromencoding- the encoding to use
-
ConsoleOutput
public ConsoleOutput(String content)
Uses the content, provided as single string.- Parameters:
content- the content as single string
-
ConsoleOutput
public ConsoleOutput(List<String> content)
Initializes the object with the given content.- Parameters:
content- the content to use
-
ConsoleOutput
public ConsoleOutput(ArrayList<ConsoleOutputAnalyzerPanel.ConsoleOutputEntry> content)
Initializes the object with the given content.- Parameters:
content- the content to use
-
-
Method Detail
-
parse
protected void parse(List<String> content)
Parses the content.- Parameters:
content- the content to parse
-
getOrigins
public List<String> getOrigins()
Returns all available origins in the data (sorted).- Returns:
- the origins
-
getTypes
public List<String> getTypes()
Returns all available types in the data (sorted).- Returns:
- the types
-
applyFilter
public ConsoleOutputAnalyzerPanel.ConsoleOutput applyFilter(ConsoleOutputAnalyzerPanel.ConsoleEntryFilter filter)
Filters the data.- Parameters:
filter- the filter to apply
-
toSpreadSheet
public SpreadSheet toSpreadSheet()
Returns the content as spreadsheet.- Specified by:
toSpreadSheetin interfaceSpreadSheetSupporter- Returns:
- the content
-
-