decorator in java.io