MCPcopy Create free account
hub / github.com/diffplug/matfilerw / copy

Method copy

src/main/java/com/jmatio/io/MatFileReader.java:655–661  ·  view source on GitHub ↗
(InputStream stream, ByteArrayOutputStream2 output)

Source from the content-addressed store, hash-verified

653 }
654
655 private void copy(InputStream stream, ByteArrayOutputStream2 output) throws IOException {
656 final byte[] buffer = new byte[1024 * 4];
657 int n = 0;
658 while (-1 != (n = stream.read(buffer))) {
659 output.write(buffer, 0, n);
660 }
661 }
662
663 /**
664 * Workaround taken from bug <a

Callers 1

readMethod · 0.95

Calls 2

writeMethod · 0.65
readMethod · 0.45

Tested by

no test coverage detected