Home | History | Annotate | Download | only in io

Lines Matching refs:InputStream

29 import java.io.InputStream;
110 public static long copy(InputSupplier<? extends InputStream> from,
113 InputStream in = from.getInput();
138 public static long copy(InputSupplier<? extends InputStream> from,
141 InputStream in = from.getInput();
160 public static long copy(InputStream from, OutputStream to)
206 public static byte[] toByteArray(InputStream in) throws IOException {
213 * Returns the data from a {@link InputStream} factory as a byte array.
219 InputSupplier<? extends InputStream> supplier) throws IOException {
221 InputStream in = supplier.getInput();
544 public static long length(InputSupplier<? extends InputStream> supplier)
548 InputStream in = supplier.getInput();
573 public static boolean equal(InputSupplier<? extends InputStream> supplier1,
574 InputSupplier<? extends InputStream> supplier2) throws IOException {
579 InputStream in1 = supplier1.getInput();
581 InputStream in2 = supplier2.getInput();
613 public static void readFully(InputStream in, byte[] b) throws IOException {
631 public static void readFully(InputStream in, byte[] b, int off, int len)
650 public static void skipFully(InputStream in, long n) throws IOException {
673 public static <T> T readBytes(InputSupplier<? extends InputStream> supplier,
677 InputStream in = supplier.getInput();
703 public static long getChecksum(InputSupplier<? extends InputStream> supplier,
729 public static byte[] getDigest(InputSupplier<? extends InputStream> supplier,
767 public static int read(InputStream in, byte[] b, int off, int len)
794 public static InputSupplier<InputStream> slice(
795 final InputSupplier<? extends InputStream> supplier,
801 return new InputSupplier<InputStream>() {
802 /*@Override*/ public InputStream getInput() throws IOException {
803 InputStream in = supplier.getInput();
818 * Joins multiple {@link InputStream} suppliers into a single supplier.
832 public static InputSupplier<InputStream> join(
833 final Iterable<? extends InputSupplier<? extends InputStream>> suppliers) {
834 return new InputSupplier<InputStream>() {
835 /*@Override*/ public InputStream getInput() throws IOException {
842 public static InputSupplier<InputStream> join(
843 InputSupplier<? extends InputStream>... suppliers) {