MCPcopy Create free account
hub / github.com/core-lib/xjar / read

Method read

src/main/java/io/xjar/XKit.java:70–74  ·  view source on GitHub ↗
(InputStream in)

Source from the content-addressed store, hash-verified

68 }
69
70 public static byte[] read(InputStream in) throws IOException {
71 ByteArrayOutputStream bos = new ByteArrayOutputStream();
72 transfer(in, bos);
73 return bos.toByteArray();
74 }
75
76 public static void write(OutputStream out, byte[] data) throws IOException {
77 if (data == null) {

Callers 5

encryptMethod · 0.95
decryptMethod · 0.95
readlnMethod · 0.45
transferMethod · 0.45
hashMethod · 0.45

Calls 1

transferMethod · 0.95

Tested by

no test coverage detected