|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bootchart.common.Common
public class Common
Common methods.
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. |
Constructor Summary | |
---|---|
Common()
|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VERSION
public static final Locale LOCALE
public static final List PROC_PARAM
public static final int MAX_PARSE_SAMPLES
Constructor Detail |
---|
public Common()
Method Detail |
---|
public static String loadFile(File file) throws IOException
file
- the file to read
IOException
- if an I/O error occurspublic static BufferedReader getReader(InputStream is) throws IOException
is
- input stream to read
IOException
- if an I/O error occurspublic static double parseDouble(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 parsed
public static String formatCommand(String cmd)
cmd
- command line
public static String getProcessDesc(Process proc, Date startTime)
proc
- the process to get description forstartTime
- process tree start time
public static boolean isPNGSupported()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |