public class HeaderParser
extends java.lang.Object
header log file, which contains
the chart title and basic information about the system, OS release,
CPU, etc.| Constructor and Description |
|---|
HeaderParser() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getNumCPUs(java.util.Properties headers)
Get the number of CPUs from the
system.cpu header
property. |
static java.util.Properties |
oldParseLog(java.io.BufferedReader reader)
Parses the header log file (old version).
|
static java.util.Properties |
parseLog(java.io.InputStream is)
Parses the header log file.
|
public static java.util.Properties parseLog(java.io.InputStream is)
throws java.io.IOException
Properties instance
should contain at least the following values:
is - the input stream to read fromjava.io.IOException - if an I/O error occurspublic static java.util.Properties oldParseLog(java.io.BufferedReader reader)
throws java.io.IOException
reader - the reader to read fromjava.io.IOException - if an I/O error occurspublic static int getNumCPUs(java.util.Properties headers)
system.cpu header
property.headers - header properties