MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / copy

Method copy

src/main/java/com/volmit/adapt/util/IO.java:1246–1252  ·  view source on GitHub ↗

Copy bytes from an InputStream to an OutputStream . This method buffers the input internally, so there is no need to use a BufferedInputStream . Large streams (over 2GB) will return a bytes copied value of -1 after the copy has completed sinc

(InputStream input, OutputStream output)

Source from the content-addressed store, hash-verified

1244 * @since Commons IO 1.1
1245 */
1246 public static int copy(InputStream input, OutputStream output) throws IOException {
1247 long count = copyLarge(input, output);
1248 if (count > Integer.MAX_VALUE) {
1249 return -1;
1250 }
1251 return (int) count;
1252 }
1253
1254 /**
1255 * Copy bytes from a large (over 2GB) <code>InputStream</code> to an

Callers 15

doCopyFileMethod · 0.95
toByteArrayMethod · 0.95
toCharArrayMethod · 0.95
toStringMethod · 0.95
updateMethod · 0.80
updateMethod · 0.80
onMethod · 0.80
onMethod · 0.80
onMethod · 0.80
onMethod · 0.80
onMethod · 0.80
onMethod · 0.80

Calls 1

copyLargeMethod · 0.95

Tested by

no test coverage detected