MCPcopy Create free account
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 2

loadClientConfigMethod · 0.45
readFromUrlWithRetryMethod · 0.45

Calls 4

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

Tested by

no test coverage detected