Example usage for Java org.bouncycastle.util.io Streams fields, constructors, methods, implement or subclass
The text is from its open source code.
void | pipeAll(InputStream inStr, OutputStream outStr) Write the full contents of inStr to the destination stream outStr. |
byte[] | readAll(InputStream inStr) Read stream fully, returning contents in a byte array. |
byte[] | readAllLimited(InputStream inStr, int limit) Read from inStr up to a maximum number of bytes, throwing an exception if more the maximum amount of requested data is available. |
int | readFully(InputStream inStr, byte[] buf) Fully read in buf's length in data, or up to EOF, whichever occurs first, |