|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bootchart.common.Common
Common methods.
Nested Class Summary | |
static class |
Common.LogFileFilter
File name filter for bootchart log files. |
Field Summary | |
static java.util.Locale |
LOCALE
Default locale. |
static int |
MAX_PARSE_SAMPLES
The maximum number of samples to parse. |
static java.lang.String |
VERSION
Program version. |
Constructor Summary | |
Common()
|
Method Summary | |
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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String VERSION
public static final java.util.Locale LOCALE
public static final int MAX_PARSE_SAMPLES
Constructor Detail |
public Common()
Method Detail |
public static java.lang.String loadFile(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
file
- the file to read
java.io.FileNotFoundException
- if the file cannot be found
java.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 read
java.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 parsed
public static java.lang.String formatCommand(java.lang.String cmd)
cmd
- command line
public static java.lang.String getProcessDesc(Process proc, java.util.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 |