Java Utililty Methods BufferedOutputStream Create

List of utility methods to do BufferedOutputStream Create

Description

The list of methods to do BufferedOutputStream Create are organized into topic(s).

Method

BufferedWritertoBuffered(OutputStream stream)
to Buffered
return toBuffered(toWriter(stream));
DataOutputStreamtoBufferedDataOutputStream(final OutputStream outputStream)
to Buffered Data Output Stream
return new DataOutputStream(toBufferedOutputStream(outputStream));
BufferedOutputStreamtoBufferedOutputStream(OutputStream os)
to Buffered Output Stream
if (os instanceof BufferedOutputStream)
    return (BufferedOutputStream) os;
return new BufferedOutputStream(os);
BufferedInputStreamtoBufferedStream(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);