You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2003/08/04 05:21:51 UTC

cvs commit: cocoon-2.1/src/java/org/apache/cocoon/environment/wrapper EnvironmentWrapper.java

joerg       2003/08/03 20:21:51

  Modified:    src/java/org/apache/cocoon/environment/wrapper
                        EnvironmentWrapper.java
  Log:
  inherited @deprecated message + fix for getOutputStream(int buffer)
  
  Revision  Changes    Path
  1.9       +6 -2      cocoon-2.1/src/java/org/apache/cocoon/environment/wrapper/EnvironmentWrapper.java
  
  Index: EnvironmentWrapper.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/environment/wrapper/EnvironmentWrapper.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- EnvironmentWrapper.java	10 Jul 2003 13:17:01 -0000	1.8
  +++ EnvironmentWrapper.java	4 Aug 2003 03:21:51 -0000	1.9
  @@ -196,6 +196,7 @@
   
       /**
        * Get the output stream
  +     * @deprecated use {@link #getOutputStream(int)} instead.
        */
       public OutputStream getOutputStream()
       throws IOException {
  @@ -204,10 +205,13 @@
           : this.outputStream;
       }
   
  +    /**
  +     * Get the output stream
  +     */
       public OutputStream getOutputStream(int bufferSize)
       throws IOException {
           return this.outputStream == null
  -                ? this.environment.getOutputStream()
  +                ? this.environment.getOutputStream(bufferSize)
                   : this.outputStream;
       }