Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Might be worth providing output analogues of IOUtils#toBufferedReader().
i.e., if the OutputStream or Writer is not buffered, then wrap it in the corresponding Buffered... class.
Unfortunately, the input method name toBufferedInputStream is already in use, and does not perform the equivalent conversion of an InputStream.
The new methods could use a different prefix, e.g.
asBufferedOutputStream, asBufferedWriter.
Could then create the equivalent input methods and deprecate toBufferedReader in favour of asBufferedReader.
Attachments
Issue Links
- duplicates
-
IO-233 Add Methods for Buffering Streams/Writers To IOUtils
- Closed