| Modifier and Type | Method and Description |
|---|---|
| public static long | Returns: The converted long value. "overflowRetval" is returned if the string representation exceeds the range of type long. "defaultRetval" is returned if another type of error occurred during conversion.Convert a number from its string representation to a long. |
| public static double | Returns: The double value or "defaultRetval" if there was an error.Get a double value from file "param" within "controller". |
| public static long | Returns: long value or "defaultRetval" if there was an error or no match was found.getLongEntry Return the long value from the line containing the string "entryname" within file "param" in the "controller". |
| public static long | Returns: The converted long value or "defaultRetval" if there was an error.Get a long value from directory "controller" and file "param", by applying "conversion" to the string value within the file. |
| public static long | Returns: The long value as derived by applying "conversion" to the matching line or "defaultRetval" if there was an error or no match found.Get an entry from file "param" within the "controller" directory path which matches string "match". |
| public static String | Returns: Returns the contents of the file specified by param or null if an error occurs.getStringValue Return the first line of the file "param" argument from the controller. |
| public String | |
| public static int[] | Returns: int[] containing a sorted list of numbers as represented by the string range. Returns null if there was an error or the input was an empty string.stringRangeToIntArray Convert a string in the form of 1,3-4,6 to an array of integers containing all the numbers in the range. |
| EMPTY_STR | back to summary |
|---|---|
| public static final String EMPTY_STR | |
| convertStringToLong | back to summary |
|---|---|
| public static long convertStringToLong(String strval, long overflowRetval, long defaultRetval) Convert a number from its string representation to a long.
| |
| getDoubleValue | back to summary |
|---|---|
| public static double getDoubleValue(CgroupSubsystemController controller, String param, double defaultRetval) Get a double value from file "param" within "controller".
| |
| getLongEntry | back to summary |
|---|---|
| public static long getLongEntry(CgroupSubsystemController controller, String param, String entryname, long defaultRetval) getLongEntry Return the long value from the line containing the string "entryname" within file "param" in the "controller". Todo Consider using weak references for caching BufferedReader object.
| |
| getLongValue | back to summary |
|---|---|
| public static long getLongValue(CgroupSubsystemController controller, String param, Function<String, Long> conversion, long defaultRetval) Get a long value from directory "controller" and file "param", by applying "conversion" to the string value within the file.
| |
| getLongValueMatchingLine | back to summary |
|---|---|
| public static long getLongValueMatchingLine(CgroupSubsystemController controller, String param, String match, Function<String, Long> conversion, long defaultRetval) Get an entry from file "param" within the "controller" directory path which matches string "match". Applies "conversion" to the matching line.
| |
| getStringValue | back to summary |
|---|---|
| public static String getStringValue(CgroupSubsystemController controller, String param) getStringValue Return the first line of the file "param" argument from the controller. Todo Consider using weak references for caching BufferedReader object.
| |
| path | back to summary |
|---|---|
| public String path() | |
| stringRangeToIntArray | back to summary |
|---|---|
| public static int[] stringRangeToIntArray(String range) stringRangeToIntArray Convert a string in the form of 1,3-4,6 to an array of integers containing all the numbers in the range.
| |