MCPcopy Create free account
hub / github.com/Sable/axml / readFile

Method readFile

src/pxb/android/axml/Util.java:31–37  ·  view source on GitHub ↗
(File in)

Source from the content-addressed store, hash-verified

29
30public class Util {
31 public static byte[] readFile(File in) throws IOException {
32 InputStream is = new FileInputStream(in);
33 byte[] xml = new byte[is.available()];
34 is.read(xml);
35 is.close();
36 return xml;
37 }
38
39 public static byte[] readIs(InputStream is) throws IOException {
40 ByteArrayOutputStream os = new ByteArrayOutputStream();

Callers 2

mainMethod · 0.95
mainMethod · 0.95

Calls 1

readMethod · 0.80

Tested by

no test coverage detected