Package org.bouncycastle.util.io
Class Streams
java.lang.Object
org.bouncycastle.util.io.Streams
public final class Streams extends Object
-
Constructor Summary
Constructors Constructor Description Streams() -
Method Summary
Modifier and Type Method Description static voiddrain(InputStream inStr)static voidpipeAll(InputStream inStr, OutputStream outStr)static longpipeAllLimited(InputStream inStr, long limit, OutputStream outStr)static byte[]readAll(InputStream inStr)static byte[]readAllLimited(InputStream inStr, int limit)static intreadFully(InputStream inStr, byte[] buf)static intreadFully(InputStream inStr, byte[] buf, int off, int len)
-
Constructor Details
-
Streams
public Streams()
-
-
Method Details
-
drain
- Throws:
IOException
-
readAll
- Throws:
IOException
-
readAllLimited
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
pipeAll
- Throws:
IOException
-
pipeAllLimited
public static long pipeAllLimited(InputStream inStr, long limit, OutputStream outStr) throws IOException- Throws:
IOException
-