The java.io API and the Decorator Pattern

I’m posting to share with you a interesting point on the java.io API, that uses the Decorator Pattern. The topic was submitted at the StackOverflow WebSite and Answered by BalusC there it is: http://stackoverflow.com/questions/6366385/decorator-pattern-for-io