Home | History | Annotate | Download | only in io

Lines Matching defs:in

5  * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
28 * Returns a byte[] containing the remainder of 'in', closing it when done.
30 public static byte[] readFully(InputStream in) throws IOException {
32 return readFullyNoClose(in);
34 in.close();
39 * Returns a byte[] containing the remainder of 'in'.
41 private static byte[] readFullyNoClose(InputStream in) throws IOException {
45 while ((count = in.read(buffer)) != -1) {
52 * Copies all of the bytes from {@code in} to {@code out}. Neither stream is closed.
55 public static int copy(InputStream in, OutputStream out) throws IOException {
59 while ((c = in.read(buffer)) != -1) {