You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2004/04/14 16:14:14 UTC

cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/authoring UploadHelper.java

andreas     2004/04/14 07:14:14

  Modified:    src/java/org/apache/lenya/cms/authoring UploadHelper.java
  Log:
  code formatting
  
  Revision  Changes    Path
  1.3       +11 -20    cocoon-lenya/src/java/org/apache/lenya/cms/authoring/UploadHelper.java
  
  Index: UploadHelper.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/authoring/UploadHelper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- UploadHelper.java	15 Mar 2004 14:58:28 -0000	1.2
  +++ UploadHelper.java	14 Apr 2004 14:14:14 -0000	1.3
  @@ -1,21 +1,13 @@
   /*
  - * Copyright  1999-2004 The Apache Software Foundation
  - *
  - *  Licensed under the Apache License, Version 2.0 (the "License");
  - *  you may not use this file except in compliance with the License.
  - *  You may obtain a copy of the License at
  - *
  - *      http://www.apache.org/licenses/LICENSE-2.0
  - *
  - *  Unless required by applicable law or agreed to in writing, software
  - *  distributed under the License is distributed on an "AS IS" BASIS,
  - *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  - *  See the License for the specific language governing permissions and
  - *  limitations under the License.
  - *
  + * Copyright 1999-2004 The Apache Software Foundation Licensed under the Apache License, Version 2.0
  + * (the "License"); you may not use this file except in compliance with the License. You may obtain
  + * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable
  + * law or agreed to in writing, software distributed under the License is distributed on an "AS IS"
  + * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
  + * for the specific language governing permissions and limitations under the License.
    */
   
  -/* $Id$  */
  +/* $Id$ */
   
   package org.apache.lenya.cms.authoring;
   
  @@ -44,7 +36,6 @@
   
       /**
        * Save uploaded file
  -     * 
        * @param part
        */
       public boolean save(Part part) {
  @@ -56,10 +47,10 @@
               parent.mkdirs();
               log.info("Directory has been created: " + parent);
           }
  -	
  -	try {
  +
  +        try {
               FileOutputStream out = new FileOutputStream(file.getAbsolutePath());
  -	    InputStream in = part.getInputStream();
  +            InputStream in = part.getInputStream();
               byte[] buf = new byte[4096];
               int read = in.read(buf);
   
  @@ -76,4 +67,4 @@
           }
           return true;
       }
  -}
  +}
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org