org.bouncycastle.util.io

Class Streams


public final class Streams
extends java.lang.Object

Method Summary

static void
pipeAll(InputStream inStr, OutputStream outStr)
static byte[]
readAll(InputStream inStr)
static int
readFully(InputStream inStr, byte[] buf)
static int
readFully(InputStream inStr, byte[] buf, int off, int len)

Method Details

pipeAll

public static void pipeAll(InputStream inStr,
                           OutputStream outStr)
            throws IOException

readAll

public static byte[] readAll(InputStream inStr)
            throws IOException

readFully

public static int readFully(InputStream inStr,
                            byte[] buf)
            throws IOException

readFully

public static int readFully(InputStream inStr,
                            byte[] buf,
                            int off,
                            int len)
            throws IOException