public class Common
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Common.LogFileFilter
File name filter for bootchart log files.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.Locale |
LOCALE
Default locale.
|
static int |
MAX_PARSE_SAMPLES
The maximum number of samples to parse.
|
static java.util.List |
PROC_PARAM
A list of processes which should include parameters in their command lines.
|
static java.lang.String |
VERSION
Program version.
|
| Constructor and Description |
|---|
Common() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatCommand(java.lang.String cmd)
Format the specified command line.
|
static java.lang.String |
getProcessDesc(Process proc,
java.util.Date startTime)
Returns the text to include in the process description pop-up.
|
static java.io.BufferedReader |
getReader(java.io.InputStream is)
Returns a buffered reader suitable for reading the input stream.
|
static boolean |
isPNGSupported()
Whether the running JVM supports PNG encoding.
|
static java.lang.String |
loadFile(java.io.File file)
Loads the contents of the file.
|
static double |
parseDouble(java.lang.String s)
Returns a new
double initialized to the value
represented by the specified String. |
public static final java.lang.String VERSION
public static final java.util.Locale LOCALE
public static final java.util.List PROC_PARAM
public static final int MAX_PARSE_SAMPLES
public static java.lang.String loadFile(java.io.File file)
throws java.io.IOException
file - the file to readjava.io.IOException - if an I/O error occurspublic static java.io.BufferedReader getReader(java.io.InputStream is)
throws java.io.IOException
is - input stream to readjava.io.IOException - if an I/O error occurspublic static double parseDouble(java.lang.String s)
double initialized to the value
represented by the specified String. Any decimal commas
in the string are replaced with dots.s - the string to be parsedpublic static java.lang.String formatCommand(java.lang.String cmd)
cmd - command linepublic static java.lang.String getProcessDesc(Process proc, java.util.Date startTime)
proc - the process to get description forstartTime - process tree start timepublic static boolean isPNGSupported()