[ http://mc4j.org/jira/browse/STS-304?page=comments#action_10516 ] Ben Gunter commented on STS-304: --------------------------------
If you want to go that route, then is getInputStream() necessary? No, because you could do a one-liner new FileInputStream(fileBean.getFileName()) and get an input stream. In fact, is Stripes necessary? You can write servlets without Stripes. More often than not, when a person wants to read a file, they're going to just open a FileReader and read it. Sure, there are cases where you might want to do something a little more involved, but that's when you use the InputStream to do whatever it is you need to do. It's nice to have getInputStream(). And since that's there, it's intuitive to also provide getReader(). It's about convenience. That's the whole point of a framework: to make things easier. > add FileBean.getReader() > ------------------------ > > Key: STS-304 > URL: http://mc4j.org/jira/browse/STS-304 > Project: Stripes > Issue Type: Improvement > Affects Versions: Release 1.4.1 > Reporter: Ben Gunter > Assigned To: Tim Fennell > Priority: Trivial > > FileBean should provide a method > public java.io.Reader getReader() > to complement the getInputStream() method. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://mc4j.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Stripes-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-development
