org.bootchart.parser

Class HeaderParser

public class HeaderParser extends Object

HeaderParser parses the header log file, which contains the chart title and basic information about the system, OS release, CPU, etc.
Method Summary
static intgetNumCPUs(Properties headers)
Get the number of CPUs from the system.cpu header property.
static PropertiesoldParseLog(BufferedReader reader)
Parses the header log file (old version).
static PropertiesparseLog(InputStream is)
Parses the header log file.

Method Detail

getNumCPUs

public static int getNumCPUs(Properties headers)
Get the number of CPUs from the system.cpu header property.

Parameters: headers header properties

Returns: the number of CPUs

oldParseLog

public static Properties oldParseLog(BufferedReader reader)
Parses the header log file (old version).

Parameters: reader the reader to read from

Returns: header properties

Throws: IOException if an I/O error occurs

parseLog

public static Properties parseLog(InputStream is)
Parses the header log file. The Properties instance should contain at least the following values:

Parameters: is the input stream to read from

Returns: header properties

Throws: IOException if an I/O error occurs