org.bootchart.common
public class Common extends Object
Nested Class Summary | |
---|---|
static class | Common.LogFileFilter
File name filter for bootchart log files. |
Field Summary | |
---|---|
static Locale | LOCALE Default locale. |
static int | MAX_PARSE_SAMPLES The maximum number of samples to parse. |
static List | PROC_PARAM A list of processes which should include parameters in their command lines. |
static String | VERSION Program version. |
Method Summary | |
---|---|
static String | formatCommand(String cmd)
Format the specified command line. |
static String | getProcessDesc(Process proc, Date startTime)
Returns the text to include in the process description pop-up.
|
static BufferedReader | getReader(InputStream is)
Returns a buffered reader suitable for reading the input stream.
|
static boolean | isPNGSupported()
Whether the running JVM supports PNG encoding. |
static String | loadFile(File file)
Loads the contents of the file. |
static double | parseDouble(String s)
Returns a new double initialized to the value
represented by the specified String . |
Parameters: cmd command line
Returns: a trimed command line
Parameters: proc the process to get description for startTime process tree start time
Returns: a multiline process description text
Parameters: is input stream to read
Returns: buffered reader
Throws: IOException if an I/O error occurs
Returns: whether this JVM supports PNG encoding
Parameters: file the file to read
Returns: file contents string
Throws: IOException if an I/O error occurs
double
initialized to the value
represented by the specified String
. Any decimal commas
in the string are replaced with dots.
Parameters: s the string to be parsed
Returns: the double value represented by the string argument