List of utility methods to do BufferedOutputStream Create
BufferedWriter | toBuffered(OutputStream stream) to Buffered return toBuffered(toWriter(stream));
|
DataOutputStream | toBufferedDataOutputStream(final OutputStream outputStream) to Buffered Data Output Stream return new DataOutputStream(toBufferedOutputStream(outputStream)); |
BufferedOutputStream | toBufferedOutputStream(OutputStream os) to Buffered Output Stream if (os instanceof BufferedOutputStream) return (BufferedOutputStream) os; return new BufferedOutputStream(os); |
BufferedInputStream | toBufferedStream(InputStream is) Returns the given InputStream cast to a BufferedInputStream if possible, otherwise wraps it into a new BufferedInputStream . checkNotNull(is, "input stream must not be null"); if (is instanceof BufferedInputStream) return (BufferedInputStream) is; return new BufferedInputStream(is); |