[jira] [Commented] (IO-233) Add Methods for Buffering Streams/Writers To IOUtils

2012-03-26 Thread Aaron Digulla (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/IO-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13238235#comment-13238235
 ] 

Aaron Digulla commented on IO-233:
--

It would be worth if, if you'd add the encoding:

{code}
public static BufferedReader buffer(InputStream inputStream, String encoding) {
return new BufferedReader(new InputStreamReader(inputStream, encoding));
}
{code}

which would a nice API together with my issue IO-315: Replace all String 
encoding parameters with a value type

 Add Methods for Buffering Streams/Writers To IOUtils
 

 Key: IO-233
 URL: https://issues.apache.org/jira/browse/IO-233
 Project: Commons IO
  Issue Type: Improvement
  Components: Streams/Writers
Affects Versions: 2.0
 Environment: Java 1.4+
Reporter: Michael Wooten
Priority: Minor
 Fix For: 3.x

   Original Estimate: 2h
  Remaining Estimate: 2h

 I suggest adding utility methods for buffering streams and writers to the 
 IOUtils class. The methods would have the following signatures:
 BufferedInputStream buffer(InputStream inputStream)
 BufferedOutputStream buffer(OutputStream outputStream)
 BufferedReader buffer(Reader reader)
 BufferedWriter buffer(Writer writer)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (IO-233) Add Methods for Buffering Streams/Writers To IOUtils

2012-03-26 Thread Sebb (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/IO-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13238298#comment-13238298
 ] 

Sebb commented on IO-233:
-

@Aaron
As I understand it, this issue is about adding buffering to I/O classes.
Converting between byte and character oriented classes is somewhat different.

 Add Methods for Buffering Streams/Writers To IOUtils
 

 Key: IO-233
 URL: https://issues.apache.org/jira/browse/IO-233
 Project: Commons IO
  Issue Type: Improvement
  Components: Streams/Writers
Affects Versions: 2.0
 Environment: Java 1.4+
Reporter: Michael Wooten
Priority: Minor
 Fix For: 3.x

   Original Estimate: 2h
  Remaining Estimate: 2h

 I suggest adding utility methods for buffering streams and writers to the 
 IOUtils class. The methods would have the following signatures:
 BufferedInputStream buffer(InputStream inputStream)
 BufferedOutputStream buffer(OutputStream outputStream)
 BufferedReader buffer(Reader reader)
 BufferedWriter buffer(Writer writer)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (IO-233) Add Methods for Buffering Streams/Writers To IOUtils

2011-05-11 Thread Sebb (JIRA)

[ 
https://issues.apache.org/jira/browse/IO-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13032128#comment-13032128
 ] 

Sebb commented on IO-233:
-

Is this what is intended?

{code}
public static BufferedInputStream buffer(InputStream inputStream) {
return new BufferedInputStream(inputStream);
}

public static BufferedReader buffer(Reader reader) {
return new BufferedReader(reader);
}
{code}

Seems hardly worth the effort of using it:

{code}
BufferedReader br = new BufferedReader(reader); // original code
BufferedReader br = IOUtils.buffer(reader); // using IOUtils
{code}

 Add Methods for Buffering Streams/Writers To IOUtils
 

 Key: IO-233
 URL: https://issues.apache.org/jira/browse/IO-233
 Project: Commons IO
  Issue Type: Improvement
  Components: Streams/Writers
Affects Versions: 2.0
 Environment: Java 1.4+
Reporter: Michael Wooten
Priority: Minor
 Fix For: 3.x

   Original Estimate: 2h
  Remaining Estimate: 2h

 I suggest adding utility methods for buffering streams and writers to the 
 IOUtils class. The methods would have the following signatures:
 BufferedInputStream buffer(InputStream inputStream)
 BufferedOutputStream buffer(OutputStream outputStream)
 BufferedReader buffer(Reader reader)
 BufferedWriter buffer(Writer writer)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira