Explicitly identify that Resource.openStream() returns a BufferedInputStream
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/1102a492 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/1102a492 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/1102a492 Branch: refs/heads/5.4-js-rewrite Commit: 1102a492e0a43d2918815bab0d64203a84c11e13 Parents: 1db5cb0 Author: Howard M. Lewis Ship <[email protected]> Authored: Thu Jun 28 12:13:34 2012 -0700 Committer: Howard M. Lewis Ship <[email protected]> Committed: Thu Jun 28 12:13:34 2012 -0700 ---------------------------------------------------------------------- .../java/org/apache/tapestry5/ioc/Resource.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/1102a492/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/Resource.java ---------------------------------------------------------------------- diff --git a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/Resource.java b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/Resource.java index 7a73fd7..bb87611 100644 --- a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/Resource.java +++ b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/Resource.java @@ -38,7 +38,8 @@ public interface Resource boolean exists(); /** - * Opens a stream to the content of the resource, or returns null if the resource does not exist. + * Opens a stream to the content of the resource, or returns null if the resource does not exist. The native + * input stream supplied by the resource is wrapped in a {@link java.io.BufferedInputStream}. * * @return an open, buffered stream to the content, if available */
