MCPcopy Index your code
hub / github.com/dianping/cat / readFrom

Method readFrom

lib/java/src/main/java/com/dianping/cat/util/Files.java:166–168  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

164 }
165
166 public byte[] readFrom(File file) throws IOException {
167 return readFrom(new FileInputStream(file), (int) file.length());
168 }
169
170 public String readFrom(File file, String charsetName) throws IOException {
171 byte[] content = readFrom(new FileInputStream(file), (int) file.length());

Callers 15

httpGetSendMethod · 0.80
httpPostSendMethod · 0.80
loadClientConfigMethod · 0.80
readFromUrlWithRetryMethod · 0.80
fetchContentMethod · 0.80
fetchContentMethod · 0.80
testMethod · 0.80
testTimeMethod · 0.80
runMethod · 0.80
testCrossReportMergeMethod · 0.80
testMethod · 0.80

Calls 5

copyMethod · 0.95
closeMethod · 0.65
lengthMethod · 0.45
readMethod · 0.45
toStringMethod · 0.45

Tested by 15

fetchContentMethod · 0.64
fetchContentMethod · 0.64
testMethod · 0.64
testTimeMethod · 0.64
runMethod · 0.64
testCrossReportMergeMethod · 0.64
testMethod · 0.64
testMethod · 0.64
testVisitNameMethod · 0.64