MCPcopy Index your code
hub / github.com/oshi/oshi / readFile

Method readFile

oshi-core/src/main/java/oshi/util/FileUtil.java:71–73  ·  view source on GitHub ↗

Read an entire file at one time. Intended primarily for Linux /proc filesystem to avoid recalculating file contents on iterative reads. @param filename The file to read @return A list of Strings representing each line of the file, or an empty list if file could not be read or is

(String filename)

Source from the content-addressed store, hash-verified

69 * list if file could not be read or is empty
70 */
71 public static List<String> readFile(String filename) {
72 return readFile(filename, true);
73 }
74
75 /**
76 * Read an entire file at one time. Intended primarily for Linux /proc

Callers 15

testReadFileMethod · 0.95
queryProcessorIdMethod · 0.95
initProcessorCountsMethod · 0.95
querySbitsMethod · 0.95
readMountsMapMethod · 0.95
queryMemInfoMethod · 0.95
queryVmStatMethod · 0.95
readMemInfoMethod · 0.95
queryProcessorIdMethod · 0.95
queryCurrentFreqMethod · 0.95
getSoundCardsMethod · 0.95

Calls 1

getMethod · 0.45

Tested by 1

testReadFileMethod · 0.76