org.bootchart.parser
クラス HeaderParser

java.lang.Object
  上位を拡張 org.bootchart.parser.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.


コンストラクタの概要
HeaderParser()
           
 
メソッドの概要
static int getNumCPUs(Properties headers)
          Get the number of CPUs from the system.cpu header property.
static Properties oldParseLog(BufferedReader reader)
          Parses the header log file (old version).
static Properties parseLog(InputStream is)
          Parses the header log file.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

HeaderParser

public HeaderParser()
メソッドの詳細

parseLog

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

パラメータ:
is - the input stream to read from
戻り値:
header properties
例外:
IOException - if an I/O error occurs

oldParseLog

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

パラメータ:
reader - the reader to read from
戻り値:
header properties
例外:
IOException - if an I/O error occurs

getNumCPUs

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

パラメータ:
headers - header properties
戻り値:
the number of CPUs